Machina preview.
[wolnelektury.git] / src / wolnelektury / settings / cache.py
index 69ce6cb..fab8325 100644 (file)
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
 # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
 #
@@ -17,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