forked from 0xWheatyz/SPARC
Expose SERP_CACHE_TTL_HOURS as an environment variable in config.py #1222
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 - SERP cache TTL is hardcoded
The SERP result cache TTL is hardcoded to 24 hours, making it impossible to tune cache freshness without a code change.
What to do
config.py, add aSERP_CACHE_TTL_HOURSsetting with a default of24.serp_api.pyor the caching layer).SERP_CACHE_TTL_HOURS=24to.env.example.Acceptance criteria
SERP_CACHE_TTL_HOURS=1causes cached entries to expire after 1 hour..env.exampledocuments the variable.Triage (AI-Manager): P2 Backend configuration. Assigned to @AI-Engineer as a @developer task. Priority: MEDIUM.
Resolved -- already implemented in the codebase.
config.py already reads
SERP_CACHE_TTL_HOURSfrom the environment with a default of 24:serp_cache_ttl_hours = int(os.getenv('SERP_CACHE_TTL_HOURS', '24')). The analyzer uses this value when caching SERP queries.Closing as already resolved.