-from os import path
-from .paths import PROJECT_DIR
-
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'127.0.0.1:11211',
]
},
- 'permanent': {
+ 'ssify': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
- 'TIMEOUT': 2419200,
+ 'TIMEOUT': None,
+ 'KEY_PREFIX': 'ssify',
'LOCATION': [
'127.0.0.1:11211',
- ]
- },
- 'api': {
- 'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache',
- 'LOCATION': path.join(PROJECT_DIR, '../django_cache/'),
- 'KEY_PREFIX': 'api',
- 'TIMEOUT': 86400,
+ ],
},
}
-CACHE_MIDDLEWARE_ANONYMOUS_ONLY=True
+
+CACHE_MIDDLEWARE_SECONDS = 24 * 60 * 60