Upgrade to django-redis for cachalot

This commit is contained in:
2023-01-22 18:36:36 -05:00
parent 7796ff5786
commit b0fb62bdb9
3 changed files with 22 additions and 4 deletions

View File

@ -145,9 +145,7 @@ CACHES = {
}
}
if REDIS_URL:
CACHES["default"][
"BACKEND"
] = "django.core.cache.backends.redis.RedisCache"
CACHES["default"]["BACKEND"] = "django_redis.cache.RedisCache"
CACHES["default"]["LOCATION"] = REDIS_URL
SESSION_ENGINE = "django.contrib.sessions.backends.cached_db"