Cache fragments for 6 hours

They really shouldn't change often
This commit is contained in:
Jake Howard 2022-10-04 21:27:53 +01:00
parent 6a1acd1684
commit ee4914324c
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -4,7 +4,7 @@ from django.http.request import HttpRequest
def global_vars(request: HttpRequest) -> dict: def global_vars(request: HttpRequest) -> dict:
# noop caching in preview # 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 { return {
"SEO_INDEX": settings.SEO_INDEX, "SEO_INDEX": settings.SEO_INDEX,
"DEBUG": settings.DEBUG, "DEBUG": settings.DEBUG,