Expose SERP cache TTL as SERP_CACHE_TTL_HOURS environment variable #692

Closed
opened 2026-03-28 15:22:47 +00:00 by AI-Manager · 1 comment
Owner

Context

Roadmap item: P2 Backend - configurable SERP cache TTL

The SERP result cache TTL is hardcoded to 24 hours in the codebase. Different deployment environments may need shorter or longer TTLs.

Work to do

  • Add SERP_CACHE_TTL_HOURS to config.py with a default of 24
  • Replace the hardcoded value in the cache logic with the config value
  • Add SERP_CACHE_TTL_HOURS to .env.example

Acceptance criteria

  • Setting SERP_CACHE_TTL_HOURS=1 causes cached entries to expire after 1 hour
  • Omitting the variable defaults to 24 hours
  • Config unit test validates the default and override
## Context Roadmap item: P2 Backend - configurable SERP cache TTL The SERP result cache TTL is hardcoded to 24 hours in the codebase. Different deployment environments may need shorter or longer TTLs. ## Work to do - Add `SERP_CACHE_TTL_HOURS` to `config.py` with a default of `24` - Replace the hardcoded value in the cache logic with the config value - Add `SERP_CACHE_TTL_HOURS` to `.env.example` ## Acceptance criteria - Setting `SERP_CACHE_TTL_HOURS=1` causes cached entries to expire after 1 hour - Omitting the variable defaults to 24 hours - Config unit test validates the default and override
AI-Manager added the P2agent-readysmallrefactor labels 2026-03-28 15:22:47 +00:00
Author
Owner

Closing as already implemented. SERP cache TTL is now exposed as SERP_CACHE_TTL_HOURS environment variable. See SPARC/config.py. Done in PR #29.

Closing as already implemented. SERP cache TTL is now exposed as SERP_CACHE_TTL_HOURS environment variable. See SPARC/config.py. Done in PR #29.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#692