From 0ce2b8ef5470c914102ea99c6363394fe4478ecc Mon Sep 17 00:00:00 2001 From: Robert Sparks Date: Tue, 21 Feb 2023 10:13:45 -0600 Subject: [PATCH] fix: cache page content, not page menus (#5170) * fix: cache page content, not page menus * fix: close the new cache tags --- ietf/meeting/views.py | 2 -- ietf/templates/meeting/past.html | 3 +++ ietf/templates/meeting/proceedings_progress_report.html | 4 +++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ietf/meeting/views.py b/ietf/meeting/views.py index 0ba61d3faf..a82be95746 100644 --- a/ietf/meeting/views.py +++ b/ietf/meeting/views.py @@ -3431,7 +3431,6 @@ def interim_request_edit(request, number): "form": form, "formset": formset}) -@cache_page(60*60) def past(request): '''List of past meetings''' today = timezone.now() @@ -3799,7 +3798,6 @@ def proceedings_overview(request, num=None): 'template': template, }) -@cache_page( 60 * 60 ) def proceedings_progress_report(request, num=None): '''Display Progress Report (stats since last meeting)''' if not (num and num.isdigit()): diff --git a/ietf/templates/meeting/past.html b/ietf/templates/meeting/past.html index d6ca1466f1..6de44b80ba 100644 --- a/ietf/templates/meeting/past.html +++ b/ietf/templates/meeting/past.html @@ -2,11 +2,13 @@ {# Copyright The IETF Trust 2015, All Rights Reserved #} {% load origin %} {% load ietf_filters static %} +{% load cache %} {% block pagehead %} {% endblock %} {% block title %}Past Meetings{% endblock %} {% block content %} + {% cache 3600 pastmeetings %} {% origin %}

Past Meetings

{% if meetings %} @@ -55,6 +57,7 @@

Past Meetings

{% else %}

No past meetings

{% endif %} + {% endcache %} {% endblock %} {% block js %} diff --git a/ietf/templates/meeting/proceedings_progress_report.html b/ietf/templates/meeting/proceedings_progress_report.html index a51fb01e6c..27757f5fa3 100644 --- a/ietf/templates/meeting/proceedings_progress_report.html +++ b/ietf/templates/meeting/proceedings_progress_report.html @@ -1,7 +1,8 @@ {% extends "base.html" %} -{% load ams_filters ietf_filters %} +{% load ams_filters ietf_filters cache %} {% block title %}IETF {{ meeting.number }} Proceedings - Progress Report{% endblock %} {% block content %} + {% cache 3600 proceedings_progress_report meeting.number %}

@@ -67,4 +68,5 @@

{{ rfcs.count }} RFCs published this period

{% endif %} + {% endcache %} {% endblock %} \ No newline at end of file