From: Guillaume Pellerin Date: Thu, 15 Jul 2021 10:15:03 +0000 (+0200) Subject: increase cache timeout to 7d X-Git-Tag: 2.3~7 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=c31863b9b55a6ec99891f85fa64b6f2c2f8ffa1f;p=teleforma.git increase cache timeout to 7d --- diff --git a/app/settings.py b/app/settings.py index 262fc6b1..9d043b41 100644 --- a/app/settings.py +++ b/app/settings.py @@ -268,8 +268,12 @@ RECAPTCHA_REQUIRED_SCORE = 0.85 # Cache backend is optional, but recommended to speed up user agent parsing CACHES = { 'default': { - 'BACKEND': 'django.core.cache.backends.memcached.PyMemcacheCache', - 'LOCATION': 'memcached:11211', + 'BACKEND': 'django.core.cache.backends.memcached.PyMemcacheCache', + 'LOCATION': 'memcached:11211', + 'TIMEOUT': 604800, + 'OPTIONS': { + 'MAX_ENTRIES': 36000, + } } }