forked from 0xWheatyz/SPARC
Backend: expose SERP cache TTL as SERP_CACHE_TTL_HOURS environment variable #1318
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 currently hardcoded to 24 hours. Operators cannot tune cache duration without modifying source code.
What to do
SERP_CACHE_TTL_HOURStoconfig.py(defaulting to24)..env.examplewith the new variable and its default.Acceptance criteria
SERP_CACHE_TTL_HOURS=1causes cached SERP results to expire after 1 hour.References
Roadmap: P2 Backend — SERP cache TTL is hardcoded to 24 hours.