supress the redis key length warning

This commit is contained in:
sadnub 2022-04-10 23:23:04 -04:00
parent 5d4558bddf
commit dd6f92e54d
1 changed files with 6 additions and 0 deletions

View File

@ -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",