From a5309e99731cbd650f437b3ebe17a7119822cea4 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Wed, 5 Jan 2022 10:22:25 -0800 Subject: [PATCH] Cache status contents --- bookwyrm/templates/snippets/status/layout.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bookwyrm/templates/snippets/status/layout.html b/bookwyrm/templates/snippets/status/layout.html index 93620a083..139aeb6ce 100644 --- a/bookwyrm/templates/snippets/status/layout.html +++ b/bookwyrm/templates/snippets/status/layout.html @@ -1,6 +1,7 @@ {% extends 'components/card.html' %} {% load i18n %} {% load utilities %} +{% load cache %} {% block card-header %}
{% endblock %} +{# three day cache #} +{% cache 259200 status_content status.id %} {% block card-content %}{% endblock %} +{% endcache %} {% block card-footer %} {% if moderation_mode and perms.bookwyrm.moderate_post %}