Skip to content

Commit 33c9483

Browse files
committed
Cache the wg-charter*txt pages for a time since they are very heavy to generate. Commit ready for merge.
- Legacy-Id: 9303
1 parent a1a85d4 commit 33c9483

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

ietf/group/info.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ def fill_in_wg_drafts(group):
153153
a.rel = RelatedDocument.objects.filter(source=a.document).distinct()
154154
a.invrel = RelatedDocument.objects.filter(target=a).distinct()
155155

156+
@cache_page ( 60 * 60 )
156157
def wg_charters(request, group_type):
157158
if group_type != "wg":
158159
raise Http404
@@ -169,6 +170,7 @@ def wg_charters(request, group_type):
169170
{ 'areas': areas },
170171
content_type='text/plain; charset=UTF-8')
171172

173+
@cache_page ( 60 * 60 )
172174
def wg_charters_by_acronym(request, group_type):
173175
if group_type != "wg":
174176
raise Http404

0 commit comments

Comments
 (0)