summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-04-13 21:06:39 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-04-13 21:06:39 -0400
commitc910b9220c45eb9d493d260f325efda2141205a4 (patch)
tree6152b43ea4c60a514949238b76e549fd283b9a72 /public
parent02ffa37f8607634e5e4eccba7ef25d4f48b29b3b (diff)
parentf9f8683799ef96904a7165adcfdeb0d13cb7ff61 (diff)
Merge tag 'release_2014-10-20' into archweb-generic
A few Jinja2 fixes and some perf changes
Diffstat (limited to 'public')
-rw-r--r--public/views.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/public/views.py b/public/views.py
index d1661afd..4ddcef1e 100644
--- a/public/views.py
+++ b/public/views.py
@@ -17,7 +17,7 @@ from releng.models import Release
from .utils import get_recent_updates
-@cache_control(max_age=300)
+@cache_control(max_age=307)
def index(request):
if request.user.is_authenticated():
def updates():
@@ -50,7 +50,7 @@ USER_LISTS = {
}
-@cache_control(max_age=300)
+@cache_control(max_age=307)
def userlist(request, user_type='devs'):
users = User.objects.order_by(
'first_name', 'last_name').select_related('userprofile')
@@ -70,7 +70,7 @@ def userlist(request, user_type='devs'):
return render(request, 'public/userlist.html', context)
-@cache_control(max_age=300)
+@cache_control(max_age=307)
def donate(request):
context = {
'donors': Donor.objects.filter(visible=True).order_by('name'),
@@ -88,7 +88,7 @@ def _mirror_urls():
return sorted(urls, key=sort_by)
-@cache_control(max_age=300)
+@cache_control(max_age=307)
def download(request):
try:
release = Release.objects.filter(available=True).latest()
@@ -104,7 +104,7 @@ def download(request):
return render(request, 'public/download.html', context)
-@cache_control(max_age=300)
+@cache_control(max_age=307)
def feeds(request):
repos = Repo.objects.all()
if not request.user.is_authenticated():
@@ -116,7 +116,7 @@ def feeds(request):
return render(request, 'public/feeds.html', context)
-@cache_control(max_age=300)
+@cache_control(max_age=307)
def keys(request):
users = User.objects.filter(is_active=True).select_related(
'userprofile__pgp_key').order_by('first_name', 'last_name')
@@ -153,7 +153,7 @@ def keys(request):
return render(request, 'public/keys.html', context)
-@cache_page(1800)
+@cache_page(1789)
def keys_json(request):
node_list = []