From 33c94837490ff6952a6d5e3cbae4d5cfe6637824 Mon Sep 17 00:00:00 2001 From: Robert Sparks <rjsparks@nostrum.com> Date: Sat, 21 Mar 2015 18:20:12 +0000 Subject: [PATCH] Cache the wg-charter*txt pages for a time since they are very heavy to generate. Commit ready for merge. - Legacy-Id: 9303 --- ietf/group/info.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ietf/group/info.py b/ietf/group/info.py index 85e73eead..0adf3ee0f 100644 --- a/ietf/group/info.py +++ b/ietf/group/info.py @@ -153,6 +153,7 @@ def fill_in_wg_drafts(group): a.rel = RelatedDocument.objects.filter(source=a.document).distinct() a.invrel = RelatedDocument.objects.filter(target=a).distinct() +@cache_page ( 60 * 60 ) def wg_charters(request, group_type): if group_type != "wg": raise Http404 @@ -169,6 +170,7 @@ def wg_charters(request, group_type): { 'areas': areas }, content_type='text/plain; charset=UTF-8') +@cache_page ( 60 * 60 ) def wg_charters_by_acronym(request, group_type): if group_type != "wg": raise Http404