fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update banner.
[wolnelektury.git]
/
src
/
wolnelektury
/
settings
/
cache.py
diff --git
a/src/wolnelektury/settings/cache.py
b/src/wolnelektury/settings/cache.py
index
a9cc70f
..
107ac0d
100644
(file)
--- a/
src/wolnelektury/settings/cache.py
+++ b/
src/wolnelektury/settings/cache.py
@@
-1,3
+1,7
@@
+# -*- 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.
+#
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
@@
-13,6
+17,13
@@
CACHES = {
'127.0.0.1:11211',
],
},
'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
}
CACHE_MIDDLEWARE_SECONDS = 24 * 60 * 60