X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/640e6f5c1e85d05d728cd29a129df9ea8aa8f31f..357027375ff8867f42ca34bcbfb5a78b5b185fc3:/wolnelektury/settings/cache.py?ds=inline diff --git a/wolnelektury/settings/cache.py b/wolnelektury/settings/cache.py deleted file mode 100644 index 14edd53df..000000000 --- a/wolnelektury/settings/cache.py +++ /dev/null @@ -1,25 +0,0 @@ -from os import path -from .paths import PROJECT_DIR - -CACHES = { - 'default': { - 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', - 'LOCATION': [ - '127.0.0.1:11211', - ] - }, - 'permanent': { - 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', - 'TIMEOUT': 2419200, - '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