Make response caching default and increase cache timeout to 15 minutes

parent 6bc0390b
Pipeline #1967 passed with stage
in 7 minutes and 38 seconds
......@@ -186,7 +186,7 @@ CACHES = {
'filesystem': {
'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache',
'LOCATION': '/var/tmp/ivatar_cache',
'TIMEOUT': 300,
'TIMEOUT': 900, # 15 minutes
}
}
......@@ -194,7 +194,7 @@ CACHES = {
# so the sites don't hit ivatar so much - it's what's set in the HTTP header
CACHE_IMAGES_MAX_AGE = 5 * 60
CACHE_RESPONSE = False
CACHE_RESPONSE = True
# This MUST BE THE LAST!
if os.path.isfile(os.path.join(BASE_DIR, 'config_local.py')):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment