From dd6f92e54d55b0b41cf667598f5a6a5366884708 Mon Sep 17 00:00:00 2001 From: sadnub Date: Sun, 10 Apr 2022 23:23:04 -0400 Subject: [PATCH] supress the redis key length warning --- api/tacticalrmm/tacticalrmm/settings.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/api/tacticalrmm/tacticalrmm/settings.py b/api/tacticalrmm/tacticalrmm/settings.py index 0d849634..45fbea0d 100644 --- a/api/tacticalrmm/tacticalrmm/settings.py +++ b/api/tacticalrmm/tacticalrmm/settings.py @@ -149,6 +149,12 @@ CHANNEL_LAYERS = { }, } +# silence cache key length warnings +import warnings +from django.core.cache import CacheKeyWarning + +warnings.simplefilter("ignore", CacheKeyWarning) + CACHES = { "default": { "BACKEND": "tacticalrmm.cache.TacticalRedisCache",