Dummy cache for tests

This commit is contained in:
Mouse Reeve
2022-01-06 11:40:27 -08:00
parent 86b3789ffe
commit 4d0fa2db4a
2 changed files with 8 additions and 2 deletions

View File

@ -120,7 +120,13 @@ STREAMS = [
]
# Redis cache backend
if not env("USE_LOCAL_CACHE", False):
if env("USE_DUMMY_CACHE", False):
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.dummy.DummyCache',
}
}
else:
# pylint: disable=line-too-long
CACHES = {
"default": {