Skip to content

Commit 1afc7ad

Browse files
committed
Cache the dependency graph pdf for an hour. Commit ready for merge.
- Legacy-Id: 7447
1 parent 74e4ff7 commit 1afc7ad

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

ietf/wginfo/views.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
from django.http import HttpResponse
4141
from django.conf import settings
4242
from django.core.urlresolvers import reverse as urlreverse
43+
from django.views.decorators.cache import cache_page
4344
from django.db.models import Q
4445

4546
from ietf.doc.views_search import SearchForm, retrieve_search_results
@@ -419,6 +420,7 @@ def dependencies_dot(request, acronym):
419420
content_type='text/plain; charset=UTF-8'
420421
)
421422

423+
@cache_page ( 60 * 60 )
422424
def dependencies_pdf(request, acronym):
423425

424426
group = get_object_or_404(Group, acronym=acronym)

0 commit comments

Comments
 (0)