fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix for unclickable cites in admin.
[wolnelektury.git]
/
wolnelektury
/
settings
/
cache.py
diff --git
a/wolnelektury/settings/cache.py
b/wolnelektury/settings/cache.py
index
d4beab3
..
a9cc70f
100644
(file)
--- a/
wolnelektury/settings/cache.py
+++ b/
wolnelektury/settings/cache.py
@@
-1,6
+1,3
@@
-from os import path
-from .paths import PROJECT_DIR
-
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
@@
-8,17
+5,14
@@
CACHES = {
'127.0.0.1:11211',
]
},
'127.0.0.1:11211',
]
},
- '
permanent
': {
+ '
ssify
': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'TIMEOUT': None,
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'TIMEOUT': None,
+ 'KEY_PREFIX': 'ssify',
'LOCATION': [
'127.0.0.1:11211',
'LOCATION': [
'127.0.0.1:11211',
- ]
- },
- 'api': {
- 'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache',
- 'LOCATION': path.join(PROJECT_DIR, '../django_cache/'),
- 'KEY_PREFIX': 'api',
- 'TIMEOUT': 86400,
+ ],
},
}
},
}
+
+CACHE_MIDDLEWARE_SECONDS = 24 * 60 * 60