We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ac80ab commit 7f462b3Copy full SHA for 7f462b3
1 file changed
ietf/mailinglists/views.py
@@ -3,6 +3,7 @@
3
import re
4
5
from django.shortcuts import render
6
+from django.views.decorators.cache import cache_page
7
8
import debug # pyflakes:ignore
9
@@ -14,6 +15,9 @@ def groups(request):
14
15
16
return render(request, "mailinglists/group_archives.html", { "groups": groups } )
17
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)
21
def nonwg(request):
22
groups = Group.objects.filter(type__in=("wg", "rg")).order_by("acronym")
23
0 commit comments