mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-27 03:51:08 +00:00
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' %}
|
||||
{% load i18n %}
|
||||
{% load utilities %}
|
||||
{% load cache %}
|
||||
|
||||
{% block card-header %}
|
||||
<div
|
||||
|
@ -11,7 +12,10 @@
|
|||
</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