X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/5eeb9dace6068f83e2b70b5222cfab0c0a5e71eb..01ba89e7caab3e386df4b1a99a93b98a237a0457:/wolnelektury/settings/cache.py diff --git a/wolnelektury/settings/cache.py b/wolnelektury/settings/cache.py index 61d3bb5c0..d4beab389 100644 --- a/wolnelektury/settings/cache.py +++ b/wolnelektury/settings/cache.py @@ -1,5 +1,5 @@ from os import path -from settings.paths import PROJECT_DIR +from .paths import PROJECT_DIR CACHES = { 'default': { @@ -10,7 +10,7 @@ CACHES = { }, 'permanent': { 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', - 'TIMEOUT': 2419200, + 'TIMEOUT': None, 'LOCATION': [ '127.0.0.1:11211', ] @@ -22,4 +22,3 @@ CACHES = { 'TIMEOUT': 86400, }, } -CACHE_MIDDLEWARE_ANONYMOUS_ONLY=True