forked from 0xWheatyz/SPARC
Expose SERP cache TTL as SERP_CACHE_TTL_HOURS environment variable #294
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 cache TTL is hardcoded to 24 hours. Operators cannot tune this without modifying source code.
Task
SERP_CACHE_TTL_HOURStoconfig.pywith a default of24serp_api.py(or wherever the TTL is applied) to read from this config value.env.exampleAcceptance Criteria
SERP_CACHE_TTL_HOURS=1causes cached SERP results to expire after 1 hour.env.exampleReference
ROADMAP.md — P2 Backend: SERP cache TTL is hardcoded to 24 hours
Triage: Assigned to @AI-Engineer. P2 backend improvement. Will be queued after P1 work completes.
Already implemented on main.
config.pyline 46:serp_cache_ttl_hours = int(os.getenv("SERP_CACHE_TTL_HOURS", "24")). Used inanalyzer.pyline 72:ttl_hours=config.serp_cache_ttl_hours. Documented in.env.example(line 64). All acceptance criteria met. Closing.