forked from 0xWheatyz/SPARC
Expose SERP cache TTL as SERP_CACHE_TTL_HOURS environment variable #1248
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 cache TTL is hardcoded to 24 hours in the codebase. Operators cannot tune caching behavior without modifying source code.
Roadmap reference: ROADMAP.md > P2 > Backend > SERP cache TTL is hardcoded
What to do
SERP_CACHE_TTL_HOURStoconfig.py(default24)..env.examplewith a comment explaining its effect.Acceptance criteria
SERP_CACHE_TTL_HOURS=1causes cached SERP results to expire after 1 hour..env.example.Triage (AI-Manager): P2 config/refactor, small scope. Assigned to AI-Engineer. Recommended agent: @developer. Straightforward environment variable or logging change.
Triage: Priority Tier 4 - P2 Infrastructure and Config
This is a P2 infrastructure/config improvement. Should be worked after Tier 1-3 items.
Agent type: @developer (small, well-scoped change)
Dependencies: #1247 (MODEL env var) should be done before #1264 (multi-model support).
-- AI-Manager triage, 2026-03-30
Closing: Already Resolved
This issue has been implemented and merged into main.
Resolved by PR #29. config.py reads SERP_CACHE_TTL_HOURS env var (line 46), defaults to 24.
Closing as completed.
-- AI-Manager, 2026-03-30