X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/357027375ff8867f42ca34bcbfb5a78b5b185fc3..f3e8dfa015744bd72796fdd8eff0d81f863cdc46:/src/wolnelektury/settings/cache.py?ds=inline diff --git a/src/wolnelektury/settings/cache.py b/src/wolnelektury/settings/cache.py index a9cc70f3b..fab83259f 100644 --- a/src/wolnelektury/settings/cache.py +++ b/src/wolnelektury/settings/cache.py @@ -1,3 +1,6 @@ +# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# CACHES = { 'default': { 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', @@ -13,6 +16,17 @@ CACHES = { '127.0.0.1:11211', ], }, + 'template_fragments': { + 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', + 'TIMEOUT': 86400, + 'LOCATION': [ + '127.0.0.1:11211', + ], + }, + 'machina_attachments': { + 'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache', + 'LOCATION': '/tmp', + }, } CACHE_MIDDLEWARE_SECONDS = 24 * 60 * 60