From a8a6752b0637cd7983e792b31b6af964e049c71b Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Wed, 17 Feb 2021 18:25:23 -0500 Subject: [PATCH] add CACHE_BACKEND options to settings for easier dev --- archivebox/core/settings.py | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/archivebox/core/settings.py b/archivebox/core/settings.py index 746d6dbd..2879c704 100644 --- a/archivebox/core/settings.py +++ b/archivebox/core/settings.py @@ -150,12 +150,16 @@ DATABASES = { } } -# CACHES = { -# 'default': { -# 'BACKEND': 'django.core.cache.backends.db.DatabaseCache', -# 'LOCATION': 'cache_default', -# } -# } +CACHE_BACKEND = 'django.core.cache.backends.locmem.LocMemCache' +# CACHE_BACKEND = 'django.core.cache.backends.db.DatabaseCache' +# CACHE_BACKEND = 'django.core.cache.backends.dummy.DummyCache' + +CACHES = { + 'default': { + 'BACKEND': CACHE_BACKEND, + 'LOCATION': 'django_cache_default', + } +} EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'