forked from 0xWheatyz/SPARC
Config: expose SERP cache TTL as SERP_CACHE_TTL_HOURS environment variable #1344
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?
Background
The SERP API result cache TTL is hardcoded to 24 hours in
config.py. Different deployment environments may need shorter or longer TTLs (e.g., high-frequency analysis jobs vs. cost-sensitive environments).What to do
SERP_CACHE_TTL_HOURStoconfig.pywith a default value of24..env.examplewith a comment explaining its effect.Acceptance criteria
SERP_CACHE_TTL_HOURS=1causes the SERP cache to expire entries after 1 hour.References
Roadmap: P2 — Backend — SERP cache TTL is hardcoded.
Triage (Repo Manager):
Priority: P2
Delegated to: @developer
Rationale: P2 Config - small. Extract hardcoded SERP cache TTL to env var in config.py.
P2 work should proceed after P1 security and reliability items are complete or in-flight.
Triaged by repo manager: Already resolved.
config.pyline 46:serp_cache_ttl_hours = int(os.getenv("SERP_CACHE_TTL_HOURS", "24")). The variable is documented in.env.example. Closing.