forked from 0xWheatyz/SPARC
Expose SERP cache TTL as SERP_CACHE_TTL_HOURS environment variable #1453
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 - configurable SERP cache TTL
Problem
The SERP result cache TTL is hardcoded to 24 hours. Operators cannot tune this without a code change.
What to do
SERP_CACHE_TTL_HOURS(integer, default24) toconfig.py.serp_api.pyto read from config..env.example.Acceptance criteria
SERP_CACHE_TTL_HOURS=1causes cached results to expire after 1 hour..env.example.[Triage] P2 config (SERP cache TTL env var). Assigned to @AI-Engineer. Queued for implementation after P1 issues are addressed.
[Verification] All acceptance criteria met. Verified complete.
config.pyline 46:serp_cache_ttl_hours = int(os.getenv('SERP_CACHE_TTL_HOURS', '24')). Used inanalyzer.pyline 73. Documented in.env.example. Closing as implemented.