From 3cda27577f14ae6242d43de800493f80279d1a80 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Wed, 5 Jan 2022 13:01:53 -0800 Subject: [PATCH] Removes status content cache --- .../templates/snippets/status/headers/generatednote.html | 5 +++++ bookwyrm/templates/snippets/status/layout.html | 4 ---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/bookwyrm/templates/snippets/status/headers/generatednote.html b/bookwyrm/templates/snippets/status/headers/generatednote.html index cc684a5f..7fc635ab 100644 --- a/bookwyrm/templates/snippets/status/headers/generatednote.html +++ b/bookwyrm/templates/snippets/status/headers/generatednote.html @@ -1,3 +1,7 @@ +{% load cache %} + +{# Three day cache #} +{% cache 259200 generated_note_header status.id %} {% if status.content == 'wants to read' %} {% include 'snippets/status/headers/to_read.html' with book=status.mention_books.first %} {% elif status.content == 'finished reading' %} @@ -7,3 +11,4 @@ {% else %} {{ status.content }} {% endif %} +{% endcache %} diff --git a/bookwyrm/templates/snippets/status/layout.html b/bookwyrm/templates/snippets/status/layout.html index 139aeb6c..93620a08 100644 --- a/bookwyrm/templates/snippets/status/layout.html +++ b/bookwyrm/templates/snippets/status/layout.html @@ -1,7 +1,6 @@ {% 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 %}