Merge pull request #982 from GSA/notify-admin-1381b

extend cache to 7 days
This commit is contained in:
Carlo Costino
2024-05-13 11:28:58 -04:00
committed by GitHub

View File

@@ -10,8 +10,9 @@ from app.clients import AWS_CLIENT_CONFIG
FILE_LOCATION_STRUCTURE = "service-{}-notify/{}.csv" FILE_LOCATION_STRUCTURE = "service-{}-notify/{}.csv"
# Temporarily extend cache to 7 days
JOBS = ExpiringDict(max_len=1000, max_age_seconds=3600 * 4) ttl = 60 * 60 * 24 * 7
JOBS = ExpiringDict(max_len=1000, max_age_seconds=ttl)
JOBS_CACHE_HITS = "JOBS_CACHE_HITS" JOBS_CACHE_HITS = "JOBS_CACHE_HITS"