revert: Le cache est global, va falloir le rendre plus granulaire

This commit is contained in:
Jean-Marie Favreau 2024-08-18 15:06:02 +02:00
parent b765b03a20
commit 09fe207e5e

View File

@ -62,9 +62,9 @@ MIDDLEWARE = [
"django.contrib.auth.middleware.AuthenticationMiddleware",
"django.contrib.messages.middleware.MessageMiddleware",
"django.middleware.clickjacking.XFrameOptionsMiddleware",
"django.middleware.cache.UpdateCacheMiddleware",
"django.middleware.common.CommonMiddleware",
"django.middleware.cache.FetchFromCacheMiddleware",
# "django.middleware.cache.UpdateCacheMiddleware",
# "django.middleware.common.CommonMiddleware",
# "django.middleware.cache.FetchFromCacheMiddleware",
]
CKEDITOR_CONFIGS = {
@ -192,14 +192,14 @@ COMPRESS_PRECOMPILERS = (("text/x-scss", "django_libsass.SassCompiler"),)
# cache
CACHES = {
"default": {
"BACKEND": "django.core.cache.backends.redis.RedisCache",
"LOCATION": REDIS_URL,
"KEY_PREFIX": "agenda",
"TIMEOUT": 60 * 15,
}
}
#CACHES = {
# "default": {
# "BACKEND": "django.core.cache.backends.redis.RedisCache",
# "LOCATION": REDIS_URL,
# "KEY_PREFIX": "agenda",
# "TIMEOUT": 60 * 15,
# }
#}
# EMAIL settings