Cache more templates
This commit is contained in:
parent
eba4142960
commit
bb5b473898
|
@ -1,4 +1,8 @@
|
||||||
{% load pretty %}
|
{% load pretty %}
|
||||||
|
|
||||||
|
{% load cache %}
|
||||||
|
|
||||||
|
{% cache 600 generic_detail request.user.id object live %}
|
||||||
{% include 'mixins/partials/notify.html' %}
|
{% include 'mixins/partials/notify.html' %}
|
||||||
|
|
||||||
{% if live is not None %}
|
{% if live is not None %}
|
||||||
|
@ -70,3 +74,4 @@
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% endcache %}
|
|
@ -1,3 +1,7 @@
|
||||||
|
{% load cache %}
|
||||||
|
|
||||||
|
{% cache 600 object_form request.user.id form %}
|
||||||
|
|
||||||
{% include 'mixins/partials/notify.html' %}
|
{% include 'mixins/partials/notify.html' %}
|
||||||
{% if page_title is not None %}
|
{% if page_title is not None %}
|
||||||
<h1 class="title is-4">{{ page_title }}</h1>
|
<h1 class="title is-4">{{ page_title }}</h1>
|
||||||
|
@ -25,10 +29,4 @@
|
||||||
<button type="submit" class="button modal-close-button">Submit</button>
|
<button type="submit" class="button modal-close-button">Submit</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
{% endcache %}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
{% load cache %}
|
||||||
|
|
||||||
|
{% cache 600 object request.user.id object %}
|
||||||
|
|
||||||
{% include 'mixins/partials/notify.html' %}
|
{% include 'mixins/partials/notify.html' %}
|
||||||
{% if page_title is not None %}
|
{% if page_title is not None %}
|
||||||
<h1 class="title is-4">{{ page_title }}</h1>
|
<h1 class="title is-4">{{ page_title }}</h1>
|
||||||
|
@ -43,3 +47,4 @@
|
||||||
|
|
||||||
{% include detail_template %}
|
{% include detail_template %}
|
||||||
|
|
||||||
|
{% endcache %}
|
|
@ -1,6 +1,6 @@
|
||||||
{% load cache %}
|
{% load cache %}
|
||||||
|
|
||||||
{% cache 60 objects request.user.id object_list %}
|
{% cache 600 objects request.user.id object_list %}
|
||||||
{% include 'mixins/partials/notify.html' %}
|
{% include 'mixins/partials/notify.html' %}
|
||||||
{% if page_title is not None %}
|
{% if page_title is not None %}
|
||||||
<h1 class="title is-4">{{ page_title }}</h1>
|
<h1 class="title is-4">{{ page_title }}</h1>
|
||||||
|
|
Loading…
Reference in New Issue