forked from 0xWheatyz/SPARC
Expose SERP cache TTL as SERP_CACHE_TTL_HOURS environment variable #1638
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?
Context
Roadmap item: P2 - Backend: SERP cache TTL is hardcoded to 24 hours
The 24-hour cache TTL is baked into the source code, making it impossible to adjust without a code change.
What to do
SERP_CACHE_TTL_HOURStoconfig.pywith a default of24.serp_api.pyor the database client) to read from this config value..env.example.Acceptance criteria
SERP_CACHE_TTL_HOURS=1causes cached results to expire after 1 hour.Triage (AI-Manager): P2 configuration improvement. Assigned to @AI-Engineer (developer role). Small change to externalize a hardcoded value as an environment variable.