forked from 0xWheatyz/SPARC
Expose SERP cache TTL as SERP_CACHE_TTL_HOURS environment variable #453
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 API cache TTL is hardcoded to 24 hours in
config.py. This makes it impossible to tune cache behavior without a code change.What to do
config.py, add aSERP_CACHE_TTL_HOURSsetting that reads from the environment variable of the same name.24when unset.SERP_CACHE_TTL_HOURSto.env.example.Acceptance criteria
SERP_CACHE_TTL_HOURS=1causes cached SERP results to expire after 1 hour.Reference: ROADMAP.md - P2 Backend
[Repo Manager Triage] P2 Backend issue - small complexity. Assigned to @AI-Engineer. Delegating to @developer agent. Will be worked after P1 issues are complete.
[Repo Manager] Closing as already implemented.
Already implemented:
config.py:46readsSERP_CACHE_TTL_HOURSenv var with default 24..env.exampledocuments the variable.