From b7c18946b2bab97c12a8c829cc7de6d14e4af1dd Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Thu, 25 Aug 2022 23:08:59 +0100 Subject: [PATCH] Store redirect files in cache --- website/settings.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/website/settings.py b/website/settings.py index 238e773..dff4795 100644 --- a/website/settings.py +++ b/website/settings.py @@ -111,6 +111,10 @@ DATABASES = {"default": env.db(default=f"sqlite:///{BASE_DIR}/db.sqlite3")} CACHES = {"default": env.cache(default="dummycache://")} +# Allow the redirect importer to work in load-balanced / cloud environments. +# https://docs.wagtail.io/en/v2.13/reference/settings.html#redirects +WAGTAIL_REDIRECTS_FILE_STORAGE = "cache" + RQ_QUEUES = {} USE_REDIS_QUEUE = False