forked from 0xWheatyz/SPARC
Expose SERP cache TTL as SERP_CACHE_TTL_HOURS environment variable #314
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
The SERP result cache TTL is hardcoded to 24 hours in
config.py. Operators cannot tune this without modifying source code.Work Required
SERP_CACHE_TTL_HOURStoconfig.py(or wherever the constant is defined), reading from the environment with a default of24ValueErroron invalid input at startup.env.exampleAcceptance Criteria
SERP_CACHE_TTL_HOURS=1causes cached results to expire after 1 hourThis issue has already been resolved in the fork's main branch. Already implemented in PR #29. See SPARC/config.py: serp_cache_ttl_hours = int(os.getenv('SERP_CACHE_TTL_HOURS', '24')).
Closing as completed.