Use dummy cache in dev mode

This commit is contained in:
Joel Addison 2019-10-20 22:59:07 +10:00
parent f8a963dd36
commit 7365eeacc8

View file

@ -107,6 +107,13 @@ if fail:
ADMIN_USERNAMES = [] ADMIN_USERNAMES = []
if DEV_MODE and DEV_MODE == "LAPTOP":
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.dummy.DummyCache',
}
}
else:
CACHES = { CACHES = {
'default': { 'default': {
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache', 'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',