forked from 0xWheatyz/SPARC
Expose SERP cache TTL as SERP_CACHE_TTL_HOURS environment variable #907
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?
Summary
The SERP result cache TTL is hardcoded to 24 hours in
config.py. Operators cannot tune the cache window without modifying source code.What to do
SERP_CACHE_TTL_HOURStoconfig.pywith a default of24.serp_api.py(or wherever the TTL is applied) to read from this config value..env.example.Acceptance criteria
SERP_CACHE_TTL_HOURS=1causes cached results to expire after 1 hour.serp_api.pyorconfig.py.Reference
ROADMAP.md — P2 Backend — SERP cache TTL is hardcoded to 24 hours
Triage: RESOLVED
This issue has been fully implemented in the fork main branch.
Evidence:
config.pyreadsSERP_CACHE_TTL_HOURSfrom environment, defaulting to 24 (line 46).serp_api.pyuses storage backend abstraction and the TTL is configurable..env.exampledocuments the variable.All acceptance criteria are met. Recommending closure.