From 210ad88a2e15a7feb0b7df5f946842d4f28a6185 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 3 Sep 2022 17:33:11 +0100 Subject: [PATCH] Add renditions cache --- website/settings.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/website/settings.py b/website/settings.py index 24b70eb..ed4ee32 100644 --- a/website/settings.py +++ b/website/settings.py @@ -119,7 +119,12 @@ WSGI_APPLICATION = "website.wsgi.application" DATABASES = {"default": env.db(default=f"sqlite:///{BASE_DIR}/db.sqlite3")} -CACHES = {"default": env.cache(default="dummycache://")} +CACHES = { + "default": env.cache(default="dummycache://"), + "renditions": env.cache( + var="RENDITION_CACHE_URL", default="locmemcache://renditions" + ), +} # Allow the redirect importer to work in load-balanced / cloud environments. # https://docs.wagtail.io/en/v2.13/reference/settings.html#redirects