]> git.parisson.com Git - teleforma.git/commitdiff
increase cache timeout to 7d
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Thu, 15 Jul 2021 10:15:03 +0000 (12:15 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Thu, 15 Jul 2021 10:15:03 +0000 (12:15 +0200)
app/settings.py

index 262fc6b159c141e8a29335b06c6f148815c6c3b6..9d043b416b452b4b8925fa45db327610a7287253 100644 (file)
@@ -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,
+        }
    }
 }