forked from 0xWheatyz/SPARC
Expose SERP cache TTL as SERP_CACHE_TTL_HOURS environment variable #76
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. Operators cannot tune this without a code change.
Work
SERP_CACHE_TTL_HOURStoconfig.pywith a default of24..env.example.Acceptance Criteria
SERP_CACHE_TTL_HOURS=1causes cached results to expire after 1 hour.References
Roadmap: Backend — SERP cache TTL is hardcoded to 24 hours.
Resolved. SERP cache TTL is now configurable via
SERP_CACHE_TTL_HOURSenvironment variable. Implemented in PR #29 (merged). SeeSPARC/config.py.