From fe5cfbd11da792074e9634e1c4831903b63f6ab4 Mon Sep 17 00:00:00 2001 From: Robert Sparks Date: Thu, 12 Aug 2021 14:17:51 +0000 Subject: [PATCH] Change the caching model for the nonwg list page. Commit ready for merge. - Legacy-Id: 19299 --- ietf/mailinglists/views.py | 3 --- ietf/templates/mailinglists/nonwg.html | 4 +++- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/ietf/mailinglists/views.py b/ietf/mailinglists/views.py index ab3cc559c..6bec1dafe 100644 --- a/ietf/mailinglists/views.py +++ b/ietf/mailinglists/views.py @@ -15,9 +15,6 @@ def groups(request): return render(request, "mailinglists/group_archives.html", { "groups": groups } ) -# we run the import_mailman_listinfo command via cron once per hour; we can -# safely cache this for some time. -@cache_page(15*60) def nonwg(request): groups = Group.objects.filter(type__features__acts_like_wg=True).exclude(state__in=['bof', 'conclude']).order_by("acronym") diff --git a/ietf/templates/mailinglists/nonwg.html b/ietf/templates/mailinglists/nonwg.html index d8c004c1e..191cfe6d3 100644 --- a/ietf/templates/mailinglists/nonwg.html +++ b/ietf/templates/mailinglists/nonwg.html @@ -1,13 +1,14 @@ {% extends "base.html" %} {# Copyright The IETF Trust 2015, All Rights Reserved #} {% load origin %} - +{% load cache %} {% block title %}Non-Working Group email lists{% endblock %} {% block content %} {% origin %}

Non-Working Group email lists

+ {% cache 900 nonwglisttable %} @@ -24,4 +25,5 @@ {% endfor %}
+ {% endcache %} {% endblock %}