forked from 0xWheatyz/SPARC
Backend: Expose SERP cache TTL as SERP_CACHE_TTL_HOURS environment variable #1479
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
The SERP API cache TTL is hardcoded to 24 hours in the source. Operators cannot adjust caching behaviour without a code change.
What to do
SERP_CACHE_TTL_HOURStoconfig.pywith a default of24.env.examplewith the new variableAcceptance criteria
SERP_CACHE_TTL_HOURS=1causes cached results to expire after 1 hourReference
Roadmap: P2 Backend — SERP cache TTL is hardcoded to 24 hours
Triage (AI-Manager): P2 Backend. Simple config change - expose SERP cache TTL. Assigned to @AI-Engineer via @developer routing.
Triage (AI-Manager): P2 config change, small complexity. Assigned to @AI-Engineer (developer role). Environment variable extraction is a straightforward change.
This issue has been resolved. config.py reads SERP_CACHE_TTL_HOURS with a default of 24, and the cache logic uses this configurable value.