forked from 0xWheatyz/SPARC
Expose SERP cache TTL as SERP_CACHE_TTL_HOURS environment variable #13
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?
Roadmap Reference
P2 — Backend: SERP cache TTL
Problem
The SERP result cache TTL is hardcoded to 24 hours. Operators cannot tune cache freshness without modifying code.
What to do
serp_api.py(orconfig.py).serp_cache_ttl_hourstoconfig.pyreading fromSERP_CACHE_TTL_HOURSenv var (default24).serp_api.pyto useconfig.serp_cache_ttl_hours..env.example.Acceptance Criteria
SERP_CACHE_TTL_HOURS=1causes cache entries older than 1 hour to be treated as stale.Triage: P2 SERP cache TTL config, small. Delegating to @developer. Single-file config change. Queued after P1 completion.
Implementation complete in PR #29 (feature/p2-config-improvements). Awaiting review.
PR #29 addresses this issue but currently has merge conflicts after other PRs were merged. The branch needs to be rebased onto main before it can be merged.
Closed by PR #29 (merged). Config improvements and structured logging changes are now on main.