Fix for carousel management.
[wolnelektury.git] / src / wolnelektury / settings / cache.py
1 # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
2 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
3 #
4 CACHES = {
5     'default': {
6         'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
7         'LOCATION': [
8             '127.0.0.1:11211',
9         ]
10     },
11     'template_fragments': {
12         'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
13         'TIMEOUT': 86400,
14         'LOCATION': [
15             '127.0.0.1:11211',
16         ],
17     },
18     'machina_attachments': {
19         'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache',
20         'LOCATION': '/tmp',
21     },
22 }
23
24 CACHE_MIDDLEWARE_SECONDS = 24 * 60 * 60