diff options
author | Dan McGee <dan@archlinux.org> | 2014-10-21 17:08:56 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2014-10-21 17:08:56 -0500 |
commit | c86ef5c326212f09a22f5ae3502a0bc79033a23a (patch) | |
tree | f6470c23a8553deeed46b6bdf9d100ffa2c0993f /mirrors/views.py | |
parent | 72535f8e93b144528baf98c4998430ba3a030a70 (diff) |
Use cache_page on mirror status JSON
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'mirrors/views.py')
-rw-r--r-- | mirrors/views.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mirrors/views.py b/mirrors/views.py index 90787763..c2736da8 100644 --- a/mirrors/views.py +++ b/mirrors/views.py @@ -11,6 +11,7 @@ from django.db.models import Q from django.http import Http404, HttpResponse from django.shortcuts import get_object_or_404, redirect, render from django.utils.timezone import now +from django.views.decorators.cache import cache_page from django.views.decorators.csrf import csrf_exempt from django.views.decorators.http import condition from django_countries.data import COUNTRIES @@ -306,6 +307,7 @@ class ExtendedMirrorStatusJSONEncoder(MirrorStatusJSONEncoder): return super(ExtendedMirrorStatusJSONEncoder, self).default(obj) +@cache_page(67) @condition(last_modified_func=status_last_modified) def status_json(request, tier=None): if tier is not None: |