forked from 0xWheatyz/SPARC
Expose SERP cache TTL as SERP_CACHE_TTL_HOURS environment variable #949
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?
Background
The SERP result cache TTL is hardcoded to 24 hours in
config.py. Operators cannot tune this without editing source code.Task
SERP_CACHE_TTL_HOURStoconfig.pywith a default of24..env.example.Acceptance Criteria
SERP_CACHE_TTL_HOURS=1causes cached SERP results to expire after 1 hour.Reference
Roadmap: P2 Backend -- SERP cache TTL is hardcoded to 24 hours.
Triaged by repo manager. This issue has already been resolved.
config.pyline 46 readsSERP_CACHE_TTL_HOURSfrom the environment:serp_cache_ttl_hours = int(os.getenv('SERP_CACHE_TTL_HOURS', '24')). The variable is documented in.env.example. Closing as already implemented.