forked from 0xWheatyz/SPARC
Expose SERP cache TTL as SERP_CACHE_TTL_HOURS environment variable #1359
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 is hardcoded
The SERP result cache TTL is hardcoded to 24 hours. There is no way to adjust it without modifying source code.
What to do
SERP_CACHE_TTL_HOURStoconfig.pywith a default of24.serp_api.pyto read TTL from config..env.example.Acceptance criteria
SERP_CACHE_TTL_HOURS=48doubles the cache lifetime.serp_api.py.[Repo Manager] This issue has already been resolved on the main branch. Verified by code inspection during triage. Closing.