forked from 0xWheatyz/SPARC
Expose SERP cache TTL as SERP_CACHE_TTL_HOURS environment variable #499
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 SerpAPI cache TTL is hardcoded to 24 hours. Operators cannot tune this without code changes.
Task
SERP_CACHE_TTL_HOURStoconfig.pywith a default of24.env.exampleAcceptance Criteria
SERP_CACHE_TTL_HOURS=1causes cached results to expire after 1 hourTriage: P2 Backend config. Assigned to @AI-Engineer (developer). Small scope - add SERP_CACHE_TTL_HOURS to config.py, update cache logic. Delegated to @developer agent.
Resolved: SERP_CACHE_TTL_HOURS is exposed as a configurable env var in SPARC/config.py (default 24 hours) and documented in .env.example. Merged via PR #29.
Closing as resolved -- the implementation is merged into main.