forked from 0xWheatyz/SPARC
Expose SERP cache TTL as SERP_CACHE_TTL_HOURS environment variable #603
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
From ROADMAP.md (P2 - Backend: SERP cache TTL is hardcoded to 24 hours).
The SerpAPI cache TTL is hardcoded to 24 hours. Different deployment needs (e.g. frequent re-analysis, cost reduction) require changing this without a code change.
What to do
SERP_CACHE_TTL_HOURStoconfig.py(default24).serp_api.pyto use this config value.docker-compose.yml(commented) andDEPLOYMENT.md.Acceptance criteria
SERP_CACHE_TTL_HOURS=1causes cache entries to expire after 1 hour.24remains in the caching code path.Triage (AI-Manager): P2 small backend change. Assigned to AI-Engineer. Delegating to @developer agent.
Triage: P2 Backend refactor. Delegating to @developer. Small, well-scoped config/refactor change.
Status: Already Implemented. After reviewing the codebase, this issue has already been fully addressed in the current main branch. Closing as completed.