From ee4914324c42182c28a974c5838f901f36a597da Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Tue, 4 Oct 2022 21:27:53 +0100 Subject: [PATCH] Cache fragments for 6 hours They really shouldn't change often --- website/utils/context_processors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/utils/context_processors.py b/website/utils/context_processors.py index 6f6099e..599f34c 100644 --- a/website/utils/context_processors.py +++ b/website/utils/context_processors.py @@ -4,7 +4,7 @@ from django.http.request import HttpRequest def global_vars(request: HttpRequest) -> dict: # noop caching in preview - fragment_cache_ttl = 0 if getattr(request, "is_preview", False) else 3600 + fragment_cache_ttl = 0 if getattr(request, "is_preview", False) else 21600 return { "SEO_INDEX": settings.SEO_INDEX, "DEBUG": settings.DEBUG,