forked from mirrors/bookwyrm
Cache status contents
This commit is contained in:
parent
d8dbf94c29
commit
a5309e9973
1 changed files with 4 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
||||||
{% 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
|
||||||
|
@ -11,7 +12,10 @@
|
||||||
</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