From b915c49ccb69edb08d083d1695acefc205881200 Mon Sep 17 00:00:00 2001 From: Archmonger <16909269+Archmonger@users.noreply.github.com> Date: Wed, 12 Jan 2022 00:39:33 -0800 Subject: [PATCH] Rename cache backend to "idom" --- README.md | 2 +- src/django_idom/config.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 928c33a9..516c73a7 100644 --- a/README.md +++ b/README.md @@ -117,7 +117,7 @@ IDOM_WS_MAX_RECONNECT_DELAY: int = 604800 # Configure a cache for loading JS files CACHES = { # Configure a cache for loading JS files for IDOM - "idom_web_modules": {"BACKEND": ...}, + "idom": {"BACKEND": ...}, # If the above cache is not configured, then we'll use the "default" instead "default": {"BACKEND": ...}, } diff --git a/src/django_idom/config.py b/src/django_idom/config.py index 1d527a9e..349605bf 100644 --- a/src/django_idom/config.py +++ b/src/django_idom/config.py @@ -15,7 +15,7 @@ _CACHES = getattr(settings, "CACHES", {}) if _CACHES: if "idom_web_modules" in getattr(settings, "CACHES", {}): - IDOM_WEB_MODULE_CACHE = "idom_web_modules" + IDOM_WEB_MODULE_CACHE = "idom" else: IDOM_WEB_MODULE_CACHE = DEFAULT_CACHE_ALIAS else: