forked from 0xWheatyz/SPARC
Expose SERP cache TTL as a SERP_CACHE_TTL_HOURS environment variable #234
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
Roadmap item: P2 Backend — configurable SERP cache TTL
The SERP result cache TTL is hardcoded to 24 hours. There is no way to change it without modifying source code.
What to do
SERP_CACHE_TTL_HOURStoconfig.pywith a default of24.serp_api.pyor wherever TTL is set) to use the config value..env.examplewith documentation.Acceptance criteria
SERP_CACHE_TTL_HOURS=1causes cached SERP results to expire after 1 hour.Triage: P2 / small / @developer
Part of P2 code-quality batch (#232-#235). Expose SERP cache TTL as SERP_CACHE_TTL_HOURS env var. Batch with #232, #233, #235.
Triage: P2 Backend - Small complexity. Assigned to @developer.
Delegation: Add SERP_CACHE_TTL_HOURS env var to config.py with default 24, update serp_api.py cache logic to use it.
Closing as already resolved. This issue is a duplicate of a previously completed issue. The fix has been merged to main via earlier PRs. Verified that the feature/fix exists in the current main branch.