diff --git a/ietf/mailinglists/views.py b/ietf/mailinglists/views.py index 0399565c6..d26fbccf9 100644 --- a/ietf/mailinglists/views.py +++ b/ietf/mailinglists/views.py @@ -3,6 +3,7 @@ import re from django.shortcuts import render +from django.views.decorators.cache import cache_page import debug # pyflakes:ignore @@ -14,6 +15,9 @@ 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__in=("wg", "rg")).order_by("acronym")