forked from mirrors/bookwyrm
Removes status content cache
This commit is contained in:
parent
6823d5f1b7
commit
3cda27577f
2 changed files with 5 additions and 4 deletions
|
@ -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 %}
|
||||
|
|
|
@ -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 %}
|
||||
|
|
Loading…
Reference in a new issue