Skip to content

Commit

Permalink
rename env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Hakan committed May 13, 2024
1 parent b5b4fb7 commit 27457f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/etools_datamart/config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
AZURE_STORAGE_ACCESS_MODE=(str, "r"),
AZURE_STORAGE_ACCESS_TTL=(int, 60 * 60 * 24),
AZURE_TENANT=(str, ""),
CACHE_DISABLED=(bool, False),
CACHES_DISABLED=(bool, False),
CACHES=(str, ""),
CACHE_URL=(str, "redis://127.0.0.1:6379/1"),
CACHE_URL_API=(str, "redis://127.0.0.1:6379/2?key_prefix=api"),
Expand Down Expand Up @@ -229,7 +229,7 @@
"api": env.cache("CACHE_URL_API"),
}

if env("CACHE_DISABLED"):
if env("CACHES_DISABLED"):
CACHES = {
"default": {
"BACKEND": "django.core.cache.backends.dummy.DummyCache",
Expand Down

0 comments on commit 27457f5

Please sign in to comment.