forked from 0xWheatyz/SPARC
Expose SERP cache TTL as SERP_CACHE_TTL_HOURS environment variable #692
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 SERP result cache TTL is hardcoded to 24 hours in the codebase. Different deployment environments may need shorter or longer TTLs.
Work to do
SERP_CACHE_TTL_HOURStoconfig.pywith a default of24SERP_CACHE_TTL_HOURSto.env.exampleAcceptance criteria
SERP_CACHE_TTL_HOURS=1causes cached entries to expire after 1 hourClosing as already implemented. SERP cache TTL is now exposed as SERP_CACHE_TTL_HOURS environment variable. See SPARC/config.py. Done in PR #29.