Skip to content

Commit fe5cfbd

Browse files
committed
Change the caching model for the nonwg list page. Commit ready for merge.
- Legacy-Id: 19299
1 parent 2478216 commit fe5cfbd

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

ietf/mailinglists/views.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ def groups(request):
1515

1616
return render(request, "mailinglists/group_archives.html", { "groups": groups } )
1717

18-
# we run the import_mailman_listinfo command via cron once per hour; we can
19-
# safely cache this for some time.
20-
@cache_page(15*60)
2118
def nonwg(request):
2219
groups = Group.objects.filter(type__features__acts_like_wg=True).exclude(state__in=['bof', 'conclude']).order_by("acronym")
2320

ietf/templates/mailinglists/nonwg.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
{% extends "base.html" %}
22
{# Copyright The IETF Trust 2015, All Rights Reserved #}
33
{% load origin %}
4-
4+
{% load cache %}
55
{% block title %}Non-Working Group email lists{% endblock %}
66

77
{% block content %}
88
{% origin %}
99
<h1>Non-Working Group email lists</h1>
1010

11+
{% cache 900 nonwglisttable %}
1112
<table class="table table-condensed table-striped">
1213
<thead>
1314
<tr>
@@ -24,4 +25,5 @@ <h1>Non-Working Group email lists</h1>
2425
{% endfor %}
2526
</tbody>
2627
</table>
28+
{% endcache %}
2729
{% endblock %}

0 commit comments

Comments
 (0)