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
if DEBUG:
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.dummy.DummyCache',
}
}
else:
CACHES = {
CACHES = {
"default": {
"BACKEND": "django.core.cache.backends.redis.RedisCache",
"LOCATION": REDIS_URL,
"KEY_PREFIX": "agenda",
"TIMEOUT": 60 * 15,
}
}
}
# EMAIL settings