forked from 0xWheatyz/SPARC
Expose SERP cache TTL as SERP_CACHE_TTL_HOURS environment variable #1601
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 - SERP cache TTL configurable
The SERP result cache TTL is hardcoded to 24 hours in the codebase. This makes it impossible to tune caching behavior without code changes.
What to do
SERP_CACHE_TTL_HOURStoconfig.pywith a default of24serp_api.pyto use this config value.env.exampleAcceptance criteria
SERP_CACHE_TTL_HOURSenv var controls cache durationserp_api.pyRef: ROADMAP.md P2 - Backend
This issue is already resolved in main.
config.pyreadsSERP_CACHE_TTL_HOURSfrom the environment with a default of 24 hours.