From 67723a590579ab8de1d3a6434aba032fe149334c Mon Sep 17 00:00:00 2001 From: Armin Samii Date: Mon, 6 Apr 2026 13:52:15 -0400 Subject: [PATCH] deprecate disable cache: no longer compatible with tests --- infra/.env.template | 3 --- rcvis/settings.py | 18 +++++------------- 2 files changed, 5 insertions(+), 16 deletions(-) diff --git a/infra/.env.template b/infra/.env.template index d28f6c8c..51131c41 100644 --- a/infra/.env.template +++ b/infra/.env.template @@ -48,6 +48,3 @@ export SQS_QUEUE_NAME='default-queue' # export MAILCHIMP_API_KEY='' # export MAILCHIMP_LIST_ID='' # export MAILCHIMP_DC='' - -# If you are updating a template, you'll need to clear the cache every time or set: -# export DISABLE_CACHE=True diff --git a/rcvis/settings.py b/rcvis/settings.py index 224df2f9..d1cb3166 100644 --- a/rcvis/settings.py +++ b/rcvis/settings.py @@ -282,20 +282,12 @@ AWS_DEFAULT_ACL = None -if os.environ.get('DISABLE_CACHE') != 'True': - CACHES = { - 'default': { - 'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache', - 'LOCATION': '/tmp/django_rcvis_cache/', - } - } -else: - assert DEBUG - CACHES = { - 'default': { - 'BACKEND': 'django.core.cache.backends.dummy.DummyCache', - } +CACHES = { + 'default': { + 'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache', + 'LOCATION': '/tmp/django_rcvis_cache/', } +} REST_FRAMEWORK = { # Use Django's standard `django.contrib.auth` permissions,