disable social auto signup, it just breeds confusion
[wolnelektury.git] / wolnelektury / settings / cache.py
1 from os import path
2 from settings.paths import PROJECT_DIR
3
4 CACHES = {
5     'default': {
6         'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
7         'LOCATION': [
8             '127.0.0.1:11211',
9         ]
10     },
11     'permanent': {
12         'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
13         'TIMEOUT': 2419200,
14         'LOCATION': [
15             '127.0.0.1:11211',
16         ]
17     },
18     'api': {
19         'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache',
20         'LOCATION': path.join(PROJECT_DIR, '../django_cache/'),
21         'KEY_PREFIX': 'api',
22         'TIMEOUT': 86400,
23     },
24 }
25 CACHE_MIDDLEWARE_ANONYMOUS_ONLY=True