En mode debug, pas de cache
This commit is contained in:
parent
29e4d74f94
commit
a515d26475
@ -198,14 +198,21 @@ COMPRESS_PRECOMPILERS = (("text/x-scss", "django_libsass.SassCompiler"),)
|
|||||||
|
|
||||||
# cache
|
# cache
|
||||||
|
|
||||||
CACHES = {
|
if DEBUG:
|
||||||
"default": {
|
CACHES = {
|
||||||
"BACKEND": "django.core.cache.backends.redis.RedisCache",
|
'default': {
|
||||||
"LOCATION": REDIS_URL,
|
'BACKEND': 'django.core.cache.backends.dummy.DummyCache',
|
||||||
"KEY_PREFIX": "agenda",
|
}
|
||||||
"TIMEOUT": 60 * 15,
|
}
|
||||||
|
else:
|
||||||
|
CACHES = {
|
||||||
|
"default": {
|
||||||
|
"BACKEND": "django.core.cache.backends.redis.RedisCache",
|
||||||
|
"LOCATION": REDIS_URL,
|
||||||
|
"KEY_PREFIX": "agenda",
|
||||||
|
"TIMEOUT": 60 * 15,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
# EMAIL settings
|
# EMAIL settings
|
||||||
|
Loading…
x
Reference in New Issue
Block a user