Skip to content

Commit 7f462b3

Browse files
committed
Added view caching of the non-wg list index.
- Legacy-Id: 14601
1 parent 0ac80ab commit 7f462b3

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

ietf/mailinglists/views.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import re
44

55
from django.shortcuts import render
6+
from django.views.decorators.cache import cache_page
67

78
import debug # pyflakes:ignore
89

@@ -14,6 +15,9 @@ def groups(request):
1415

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

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)
1721
def nonwg(request):
1822
groups = Group.objects.filter(type__in=("wg", "rg")).order_by("acronym")
1923

0 commit comments

Comments
 (0)