Skip to content

Commit

Permalink
fix: use DEBUG=True to allow caching in build
Browse files Browse the repository at this point in the history
  • Loading branch information
philtweir committed Oct 4, 2024
1 parent 6c5c7b4 commit 2887b01
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions arches/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,17 @@ def ready(self):
def check_cache_backend_for_production(app_configs, **kwargs):
errors = []
your_cache = settings.CACHES["default"]["BACKEND"]
# if (
# not settings.DEBUG
# and your_cache == "django.core.cache.backends.dummy.DummyCache"
# ):
# errors.append(
# Error(
# "Using dummy cache in production",
# obj=settings.APP_NAME,
# id="arches.E001",
# )
# )
if (
(not settings.DEBUG and settings.MODE != "STATIC")
and your_cache == "django.core.cache.backends.dummy.DummyCache"
):
errors.append(
Error(
"Using dummy cache in production",
obj=settings.APP_NAME,
id="arches.E001",
)
)
return errors


Expand Down

0 comments on commit 2887b01

Please sign in to comment.