forked from 0xWheatyz/SPARC
Config: expose SERP cache TTL as SERP_CACHE_TTL_HOURS environment variable #884
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 cache TTL is hardcoded to 24 hours. Operators cannot tune this without a code change.
Roadmap reference: P2 Backend - SERP cache TTL configurable
What to do
SERP_CACHE_TTL_HOURStoconfig.pywith a default of24.serp_api.pyto read from config..env.example.Acceptance criteria
SERP_CACHE_TTL_HOURS=1causes cached entries to expire after 1 hour.serp_api.py.This issue has been resolved. The changes are already merged into main.
SERP_CACHE_TTL_HOURS added to config.py. serp_api.py reads cache TTL from config. Documented in .env.example.
Closing as completed.