forked from 0xWheatyz/SPARC
Expose SERP cache TTL as SERP_CACHE_TTL_HOURS environment variable #807
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 cache TTL is hardcoded to 24 hours. For high-frequency or real-time use cases, operators cannot reduce it without code changes.
What to do
SERP_CACHE_TTL_HOURStoconfig.pywith a default of24serp_api.py(or wherever the TTL is applied) to read from config.env.examplewith a comment explaining its purposeAcceptance criteria
SERP_CACHE_TTL_HOURS=1results in cached SERP responses expiring after 1 hour.env.exampleReferences
Roadmap item: P2 Backend -- SERP cache TTL is hardcoded to 24 hours