forked from 0xWheatyz/SPARC
Expose SERP cache TTL as a configurable environment variable #1429
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?
Summary
The SERP cache TTL is hardcoded to 24 hours in the codebase. Operators cannot tune this without modifying source code.
What to do
SERP_CACHE_TTL_HOURStoconfig.pywith a default of24.serp_api.pywith the configured value..env.example.Acceptance criteria
SERP_CACHE_TTL_HOURS=48causes the cache to expire after 48 hours.References
Roadmap: P2 Backend -- configurable SERP cache TTL.
Already implemented.
SPARC/config.pyreadsSERP_CACHE_TTL_HOURSfrom the environment:serp_cache_ttl_hours = int(os.getenv("SERP_CACHE_TTL_HOURS", "24")). This value is documented in.env.example.Closing as completed.