X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/b2d342589a7889a3b096e7192453d53bd28eed7d..afb3cc283074103e1137e79589d15390c825ecf1:/src/wolnelektury/settings/cache.py?ds=sidebyside diff --git a/src/wolnelektury/settings/cache.py b/src/wolnelektury/settings/cache.py index 69ce6cb63..107ac0db7 100644 --- a/src/wolnelektury/settings/cache.py +++ b/src/wolnelektury/settings/cache.py @@ -17,6 +17,13 @@ CACHES = { '127.0.0.1:11211', ], }, + 'template_fragments': { + 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', + 'TIMEOUT': 86400, + 'LOCATION': [ + '127.0.0.1:11211', + ], + }, } CACHE_MIDDLEWARE_SECONDS = 24 * 60 * 60