Code layout change.
[wolnelektury.git] / src / wolnelektury / settings / cache.py
diff --git a/src/wolnelektury/settings/cache.py b/src/wolnelektury/settings/cache.py
new file mode 100644 (file)
index 0000000..a9cc70f
--- /dev/null
@@ -0,0 +1,18 @@
+CACHES = {
+    'default': {
+        'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
+        'LOCATION': [
+            '127.0.0.1:11211',
+        ]
+    },
+    'ssify': {
+        'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
+        'TIMEOUT': None,
+        'KEY_PREFIX': 'ssify',
+        'LOCATION': [
+            '127.0.0.1:11211',
+        ],
+    },
+}
+
+CACHE_MIDDLEWARE_SECONDS = 24 * 60 * 60