forked from 0xWheatyz/SPARC
Expose SERP cache TTL as SERP_CACHE_TTL_HOURS environment variable #1274
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 result cache TTL is hardcoded to 24 hours in
config.py. Operators cannot tune cache freshness without editing code.Roadmap reference: P2 - Backend: SERP cache TTL is hardcoded
What to do
SERP_CACHE_TTL_HOURStoconfig.py, defaulting to24.config.SERP_CACHE_TTL_HOURS..env.examplewith its default and a brief description.Acceptance criteria
SERP_CACHE_TTL_HOURS=1causes cached entries to expire after 1 hour.Triage: Already Implemented
The SERP cache TTL env var is implemented on
main:SPARC/config.pyline 46:serp_cache_ttl_hours = int(os.getenv("SERP_CACHE_TTL_HOURS", "24"))Closing as completed.