diff --git a/ietf/mailinglists/views.py b/ietf/mailinglists/views.py index ab3cc559c..9d3e12bad 100644 --- a/ietf/mailinglists/views.py +++ b/ietf/mailinglists/views.py @@ -3,7 +3,6 @@ import re from django.shortcuts import render -from django.views.decorators.cache import cache_page import debug # pyflakes:ignore @@ -15,9 +14,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 %}