Skip to content

Commit

Permalink
allow flexible cache setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Hakan committed May 10, 2024
1 parent 1249c16 commit b5b4fb7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/etools_datamart/config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
AZURE_STORAGE_ACCESS_TTL=(int, 60 * 60 * 24),
AZURE_TENANT=(str, ""),
CACHE_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"),
CACHE_URL_LOCK=(str, "redis://127.0.0.1:6379/2?key_prefix=lock"),
Expand Down Expand Up @@ -234,6 +235,9 @@
"BACKEND": "django.core.cache.backends.dummy.DummyCache",
}
}
elif len(env("CACHES")) > 8:
CACHES = env("CACHES")


ROOT_URLCONF = "etools_datamart.config.urls"

Expand Down

0 comments on commit b5b4fb7

Please sign in to comment.