diff --git a/website/blog/templates/blog/blog_post_page.html b/website/blog/templates/blog/blog_post_page.html
index 7c4928d..f6f2a2b 100644
--- a/website/blog/templates/blog/blog_post_page.html
+++ b/website/blog/templates/blog/blog_post_page.html
@@ -1,26 +1,26 @@
{% extends "common/content_page.html" %}
-{% load cache util_tags %}
+{% load wagtail_cache %}
{% block post_content %}
{{ block.super }}
{% if not request.is_preview %}
- {% cache FRAGMENT_CACHE_TTL|jitter:FRAGMENT_CACHE_TTL_JITTER "similar-content" page.id request.is_preview %}
-
- Similar content
+ {% wagtailpagecache FRAGMENT_CACHE_TTL "similar-content" %}
+
+ Similar content
-
- View all →
-
+
+ View all →
+
- {% for page in page.get_similar_posts %}
- {% block listing_item %}
- {% include "common/listing-item.html" %}
- {% endblock %}
- {% endfor %}
+ {% for page in page.get_similar_posts %}
+ {% block listing_item %}
+ {% include "common/listing-item.html" %}
+ {% endblock %}
+ {% endfor %}
-
- {% endcache %}
- {% endif %}
+
+ {% endwagtailpagecache %}
+{% endif %}
{% endblock %}
diff --git a/website/common/templates/base.html b/website/common/templates/base.html
index 90c9fc2..e3522c5 100644
--- a/website/common/templates/base.html
+++ b/website/common/templates/base.html
@@ -1,4 +1,4 @@
-{% load static wagtailcore_tags wagtailuserbar navbar_tags footer_tags plausible_wagtail favicon_tags sri cache %}
+{% load static wagtailcore_tags wagtailuserbar navbar_tags footer_tags plausible_wagtail favicon_tags sri wagtail_cache %}
@@ -32,31 +32,31 @@
{% wagtailuserbar %}
- {% cache 1800 "navbar" request.is_preview %}
- {% navbar %}
- {% endcache %}
+ {% wagtailcache 1800 "navbar" %}
+ {% navbar %}
+ {% endwagtailcache %}
- {% block main %}
-
- {% block main_content %}{% endblock %}
-
- {% endblock %}
+ {% block main %}
+
+ {% block main_content %}{% endblock %}
+
+ {% endblock %}
- {% cache 1800 "footer" request.is_preview %}
- {% footer %}
- {% endcache %}
+ {% wagtailcache 1800 "footer" %}
+ {% footer %}
+{% endwagtailcache %}
- {# Not async to avoid bright flashes #}
- {% sri_static "js/dark-mode.js" %}
+{# Not async to avoid bright flashes #}
+{% sri_static "js/dark-mode.js" %}
-
+
- {% block extra_js %}{% endblock %}
+{% block extra_js %}{% endblock %}
- {% block plausible %}
- {% if not request.user.is_authenticated or not request.is_preview %}
- {% plausible %}
- {% endif %}
- {% endblock %}
-
+{% block plausible %}
+ {% if not request.user.is_authenticated or not request.is_preview %}
+ {% plausible %}
+ {% endif %}
+{% endblock %}
+