mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-23 10:01:04 +00:00
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' %}
|
{% if status.content == 'wants to read' %}
|
||||||
{% include 'snippets/status/headers/to_read.html' with book=status.mention_books.first %}
|
{% include 'snippets/status/headers/to_read.html' with book=status.mention_books.first %}
|
||||||
{% elif status.content == 'finished reading' %}
|
{% elif status.content == 'finished reading' %}
|
||||||
|
@ -7,3 +11,4 @@
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ status.content }}
|
{{ status.content }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% endcache %}
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
{% extends 'components/card.html' %}
|
{% extends 'components/card.html' %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load utilities %}
|
{% load utilities %}
|
||||||
{% load cache %}
|
|
||||||
|
|
||||||
{% block card-header %}
|
{% block card-header %}
|
||||||
<div
|
<div
|
||||||
|
@ -12,10 +11,7 @@
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{# three day cache #}
|
|
||||||
{% cache 259200 status_content status.id %}
|
|
||||||
{% block card-content %}{% endblock %}
|
{% block card-content %}{% endblock %}
|
||||||
{% endcache %}
|
|
||||||
|
|
||||||
{% block card-footer %}
|
{% block card-footer %}
|
||||||
{% if moderation_mode and perms.bookwyrm.moderate_post %}
|
{% if moderation_mode and perms.bookwyrm.moderate_post %}
|
||||||
|
|
Loading…
Reference in a new issue