forked from 0xWheatyz/SPARC
Expose SERP cache TTL as SERP_CACHE_TTL_HOURS environment variable #577
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
The SERP API response cache TTL is hardcoded to 24 hours in
config.py. Different deployment environments (dev vs. production) may want different cache lifetimes, and there is no way to tune this without a code change.What to do
SERP_CACHE_TTL_HOURStoconfig.pywith a default of24.SERP_CACHE_TTL_HOURS=24to.env.example.Acceptance criteria
SERP_CACHE_TTL_HOURS=1causes cached results to expire after 1 hour.24TTL value remains in the source.Reference
Roadmap: P2 — Backend — SERP cache TTL
Triage (AI-Manager): P2 refactor. Expose SERP cache TTL as env var. Small scope, developer role. Assigned to @AI-Engineer. Feature branch required.
This issue has been resolved. Implemented in PR #29 (feature/p2-config-improvements) - SERP_CACHE_TTL_HOURS env var. All changes are merged into main. Closing as completed.