forked from 0xWheatyz/SPARC
Expose SERP cache TTL as SERP_CACHE_TTL_HOURS environment variable #385
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?
Problem
The SERP API cache TTL is hardcoded to 24 hours in
config.py. There is no way to adjust caching behaviour without changing source code.Work
SERP_CACHE_TTL_HOURSsetting inconfig.pythat reads from the environment, defaulting to24.SERP_CACHE_TTL_HOURSto.env.example.Acceptance Criteria
SERP_CACHE_TTL_HOURS=1causes cached results to expire after one hour.Reference
Roadmap item: P2 Backend — SERP cache TTL is hardcoded to 24 hours.
Closing as already implemented. Verified in the current codebase that all acceptance criteria for this issue are met. The work was completed in a prior sprint but the issue was not closed.