forked from 0xWheatyz/SPARC
Expose SERP_CACHE_TTL_HOURS as a configurable environment variable #48
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?
Problem
The SERP API cache TTL is hardcoded to 24 hours in
config.py. Teams that want fresher data or want to reduce storage pressure cannot change this without modifying source code.Task
SERP_CACHE_TTL_HOURStoconfig.py(or wherever the TTL is consumed), reading fromos.environwith a default of24.SERP_CACHE_TTL_HOURSto.env.examplewith the default and a brief comment.Acceptance Criteria
SERP_CACHE_TTL_HOURS=1causes cached results to expire after 1 hour.24magic number remains in the cache logic.References
Roadmap: P2 -- Backend -- SERP cache TTL is hardcoded to 24 hours.
Closing: Already implemented in PR #29. config.py reads SERP_CACHE_TTL_HOURS from environment.