Removes status content cache

This commit is contained in:
Mouse Reeve 2022-01-05 13:01:53 -08:00
parent 6823d5f1b7
commit 3cda27577f
2 changed files with 5 additions and 4 deletions

View file

@ -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 %}

View file

@ -1,7 +1,6 @@
{% extends 'components/card.html' %}
{% load i18n %}
{% load utilities %}
{% load cache %}
{% block card-header %}
<div
@ -12,10 +11,7 @@
</div>
{% 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 %}