forked from 0xWheatyz/SPARC
Expose SERP cache TTL as SERP_CACHE_TTL_HOURS environment variable #1531
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 API result cache TTL is hardcoded to 24 hours. Different deployment environments may need different cache durations.
Roadmap reference: ROADMAP.md > P2 > Backend > SERP cache TTL is hardcoded
What to do
SERP_CACHE_TTL_HOURStoconfig.pywith a default of24.env.exampleAcceptance criteria
SERP_CACHE_TTL_HOURS=1changes the cache expiry to 1 hourSERP_CACHE_TTL_HOURSdefaults to 24 hours.env.exampledocuments the variableTriage review: Resolved: config.py reads SERP_CACHE_TTL_HOURS from env var (default 24). Used in analyzer.py. Closing as already complete.