forked from 0xWheatyz/SPARC
Expose SERP cache TTL as SERP_CACHE_TTL_HOURS environment variable #1103
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Background
The SERP API cache TTL is hardcoded to 24 hours in
config.py. Operators cannot tune cache duration without code changes.What to do
SERP_CACHE_TTL_HOURStoconfig.py(default:24).serp_api.py(or wherever the TTL is applied) with the config value..env.example.Acceptance criteria
SERP_CACHE_TTL_HOURS=1causes cache entries to expire after 1 hour (unit test with a mock clock or assert the TTL value passed to the cache layer).Roadmap reference: P2 - Backend - SERP cache TTL configurable
This issue has been verified as already implemented in the current codebase. The acceptance criteria are met based on code review. Closing as completed.