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