Cache fragments for 6 hours
They really shouldn't change often
This commit is contained in:
parent
6a1acd1684
commit
ee4914324c
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue