From 14628d57556765d60ad8b6b9106a64ce72762aa7 Mon Sep 17 00:00:00 2001
From: Dominik George <nik@naturalnet.de>
Date: Sun, 15 Nov 2020 13:37:55 +0100
Subject: [PATCH] Whitelist our databases and caches for cachalot

We must ensure we only use supported backends, but as this contains
PostgreSQL, MySQL and SQLite, I see no blocker there.
---
 aleksis/core/settings.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/aleksis/core/settings.py b/aleksis/core/settings.py
index 72d627ac5..dc4782957 100644
--- a/aleksis/core/settings.py
+++ b/aleksis/core/settings.py
@@ -209,6 +209,8 @@ if _settings.get("caching.memcached.enabled", False):
     INSTALLED_APPS.append("cachalot")
     DEBUG_TOOLBAR_PANELS.append("cachalot.panels.CachalotPanel")
     CACHALOT_TIMEOUT = _settings.get("caching.cachalot.timeout", None)
+    CACHALOT_DATABASES = set(DATABASES.keys())
+    SILENCED_SYSTEM_CHECKS.append("cachalot.W001")
 
 # Password validation
 # https://docs.djangoproject.com/en/2.1/ref/settings/#auth-password-validators
-- 
GitLab