Cache en mode debug (pour #294)

This commit is contained in:
Jean-Marie Favreau 2025-01-31 15:53:07 +01:00
parent dcc470315e
commit 5a3e62bf42

View File

@ -208,21 +208,14 @@ COMPRESS_PRECOMPILERS = (("text/x-scss", "django_libsass.SassCompiler"),)
# cache # cache
if DEBUG: CACHES = {
CACHES = { "default": {
'default': { "BACKEND": "django.core.cache.backends.redis.RedisCache",
'BACKEND': 'django.core.cache.backends.dummy.DummyCache', "LOCATION": REDIS_URL,
} "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