forked from 0xWheatyz/SPARC
Backend: expose SERP cache TTL as SERP_CACHE_TTL_HOURS environment variable #525
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 — configurable SERP cache TTL
The SerpAPI cache TTL is hardcoded to 24 hours. Operators cannot tune cache duration without modifying code.
Task
SERP_CACHE_TTL_HOURStoconfig.pywith a default of24serp_api.pyto read the TTL from config instead of using a literal.env.exampleAcceptance Criteria
SERP_CACHE_TTL_HOURSis read from environment with default24serp_api.pyuses the configured value.env.exampleVerified complete:
config.pyreadsSERP_CACHE_TTL_HOURSenv var (default 24). Documented in.env.example. Closing as implemented.