forked from 0xWheatyz/SPARC
Expose SERP cache TTL as SERP_CACHE_TTL_HOURS environment variable #620
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
The SerpAPI result cache TTL is hardcoded to 24 hours inside the codebase. Operators cannot tune cache duration without modifying source.
Roadmap item: P2 > Backend > SERP cache TTL
What to do
SERP_CACHE_TTL_HOURStoconfig.pywith a default of24.serp_api.py(or wherever the TTL is applied) to read from config.SERP_CACHE_TTL_HOURSto.env.example.Acceptance criteria
SERP_CACHE_TTL_HOURS=1causes cached results to expire after 1 hour.Closing: already implemented on main.
config.pyreadsSERP_CACHE_TTL_HOURSenv var with default of 24 hours.