forked from 0xWheatyz/SPARC
Expose SERP cache TTL as SERP_CACHE_TTL_HOURS environment variable #933
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 API cache TTL is hardcoded to 24 hours in
config.py. Operators cannot tune cache duration without modifying code.Roadmap Reference
P2 Backend -- SERP cache TTL is hardcoded to 24 hours (ROADMAP.md)
What to do
config.py, addSERP_CACHE_TTL_HOURSread from the environment, defaulting to24.serp_api.pyor the caching layer)..env.example.Acceptance criteria
SERP_CACHE_TTL_HOURS=1causes cached SERP results to expire after 1 hour.This issue has been resolved.
SPARC/config.pyline 46 readsserp_cache_ttl_hours = int(os.getenv("SERP_CACHE_TTL_HOURS", "24")). The variable is configurable via environment. Closing as completed.