Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save jleechan2015/880ad8221cee45dcfa9761642a85564c to your computer and use it in GitHub Desktop.

Select an option

Save jleechan2015/880ad8221cee45dcfa9761642a85564c to your computer and use it in GitHub Desktop.
# PR #7074 Evidence — 4hr Cache TTL
## Change
`CACHE_TTL = "14400s"` (was "3600s"), `CACHE_TTL_SECONDS = 14400` (was 3600)
Branch: fix/extend-cache-ttl-4hr | SHA: c02561c7b1114d55779f7d0cacbe4d5bec36f7cc
## Test Results (local, 2026-05-24)
```
mvp_site/tests/test_gemini_request_size_logging.py::TestCampaignCacheManager::test_cache_ttl_is_4_hours PASSED
CACHE_TTL == "14400s" ✓
CACHE_TTL_SECONDS == 14400 ✓
All 15 cache tests: PASSED
```
## Production impact
Constants-only change. Cache TTL extended from 1hr to 4hr. No logic change.
Verified: 0 CACHE_TTL_EXPIRY events in prod logs last 24h (cache outlives active sessions via REBUILD_THRESHOLD=5).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment