Skip to content
Snippets Groups Projects
Verified Commit e2829a44 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Ignore caching exceptions if Redis is unavailable

parent adfbad45
No related branches found
No related tags found
1 merge request!508Move cache and session store to Redis
Pipeline #6183 passed
......@@ -221,6 +221,8 @@ if _settings.get("caching.redis.enabled", not IN_PYTEST):
}
if REDIS_PASSWORD:
CACHES["default"]["OPTIONS"]["PASSWORD"] = REDIS_PASSWORD
DJANGO_REDIS_IGNORE_EXCEPTIONS = True
DJANGO_REDIS_LOG_IGNORED_EXCEPTIONS = True
INSTALLED_APPS.append("cachalot")
DEBUG_TOOLBAR_PANELS.append("cachalot.panels.CachalotPanel")
CACHALOT_TIMEOUT = _settings.get("caching.cachalot.timeout", None)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment