Change the caching model for the nonwg list page. Commit ready for merge.

- Legacy-Id: 19299
This commit is contained in:
Robert Sparks 2021-08-12 14:17:51 +00:00
parent 24782163cb
commit fe5cfbd11d
2 changed files with 3 additions and 4 deletions

View file

@ -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")

View file

@ -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 %}
<h1>Non-Working Group email lists</h1>
{% cache 900 nonwglisttable %}
<table class="table table-condensed table-striped">
<thead>
<tr>
@ -24,4 +25,5 @@
{% endfor %}
</tbody>
</table>
{% endcache %}
{% endblock %}