Store redirect files in cache

This commit is contained in:
Jake Howard 2022-08-25 23:08:59 +01:00
parent ccc9e24e77
commit b7c18946b2
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -111,6 +111,10 @@ DATABASES = {"default": env.db(default=f"sqlite:///{BASE_DIR}/db.sqlite3")}
CACHES = {"default": env.cache(default="dummycache://")} 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 = {} RQ_QUEUES = {}
USE_REDIS_QUEUE = False USE_REDIS_QUEUE = False