From b7b0f1e01c55d43990ba651361a6f47c70b4e835 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Sat, 11 Feb 2023 14:10:18 +0000 Subject: [PATCH] Cache object list --- .../mixins/window-content/objects.html | 84 ++++++++++--------- 1 file changed, 44 insertions(+), 40 deletions(-) diff --git a/mixins/templates/mixins/window-content/objects.html b/mixins/templates/mixins/window-content/objects.html index 81423ed..0595752 100644 --- a/mixins/templates/mixins/window-content/objects.html +++ b/mixins/templates/mixins/window-content/objects.html @@ -1,45 +1,49 @@ -{% include 'mixins/partials/notify.html' %} -{% if page_title is not None %} -

{{ page_title }}

-{% endif %} -{% if page_subtitle is not None %} -

{{ page_subtitle }}

-{% endif %} -
+{% load cache %} - {% if submit_url is not None %} - +{% cache 60 object_list %} + {% include 'mixins/partials/notify.html' %} + {% if page_title is not None %} +

{{ page_title }}

{% endif %} - {% if delete_all_url is not None %} - + {% if page_subtitle is not None %} +

{{ page_subtitle }}

{% endif %} -
+
+ + {% if submit_url is not None %} + + {% endif %} + {% if delete_all_url is not None %} + + {% endif %} +
-{% include list_template %} + {% include list_template %} +{% endcache %} \ No newline at end of file