forked from 0xWheatyz/SPARC
Expose SERP cache TTL as a SERP_CACHE_TTL_HOURS environment variable #669
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 result cache TTL is hardcoded to 24 hours in
config.py. Operators cannot tune cache freshness without changing code.What to do
SERP_CACHE_TTL_HOURStoconfig.pywith a default of24..env.example.Acceptance criteria
SERP_CACHE_TTL_HOURS=1causes cache entries to expire after 1 hour..env.exampleincludes the variable.References
Roadmap item: P2 Backend — configurable SERP cache TTL.
Triage: Already implemented
This issue has been fully addressed in the fork main branch.
Verification:
SPARC/config.pyreadsSERP_CACHE_TTL_HOURSenv var with default 24 (line 46).config.serp_cache_ttl_hoursinstead of magic numbers..env.exampledocuments the variable (line 64).All acceptance criteria are met. Closing.