From 1ae3288a73a728990c812299c346e5585837205e Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 2 Oct 2022 17:32:32 +0100 Subject: [PATCH] Store template fragments in separate cache This makes clearing them less expensive --- website/settings.py | 1 + 1 file changed, 1 insertion(+) diff --git a/website/settings.py b/website/settings.py index 8e6a208..8ca6110 100644 --- a/website/settings.py +++ b/website/settings.py @@ -128,6 +128,7 @@ CACHES = { "renditions": env.cache( var="RENDITION_CACHE_URL", default="locmemcache://renditions" ), + "template_fragments": env.cache(var="FRAGMENTS_CACHE_URL", default="dummycache://"), } # Allow the redirect importer to work in load-balanced / cloud environments.