summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-09-30 12:53:17 -0500
committerDan McGee <dan@archlinux.org>2012-09-30 12:53:17 -0500
commit0b55ccb67263ad5405c912d9b10346173b399bad (patch)
tree2d36c17ab9913512da41d89beb220996b560afc1 /templates
parent6e1712b4d6c7525e03c5fac775fa16406dd4009f (diff)
downloadarchweb-0b55ccb67263ad5405c912d9b10346173b399bad.tar.gz
archweb-0b55ccb67263ad5405c912d9b10346173b399bad.zip
Fix template fragment caching on front page
Now that some users see staging packages and others do not, we need to be more careful about what variables the fragment depends on. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates')
-rw-r--r--templates/public/index.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/templates/public/index.html b/templates/public/index.html
index 3aab5da2..cebb0681 100644
--- a/templates/public/index.html
+++ b/templates/public/index.html
@@ -80,7 +80,7 @@
{% endblock %}
{% block content_right %}
-{% cache 59 main-page-right secure %}
+{% cache 59 main-page-updates user.is_authenticated %}
<div id="pkgsearch" class="widget">
<form id="pkgsearch-form" method="get" action="/packages/">
<fieldset>
@@ -88,7 +88,6 @@
<input id="pkgsearch-field" type="text" name="q" size="18" maxlength="200" />
</fieldset>
</form>
-
</div>
<div id="pkg-updates" class="widget box">
@@ -110,7 +109,9 @@
{% endfor %}
</table>
</div>
+{% endcache %}
+{% cache 59 main-page-right secure %}
<div id="nav-sidebar" class="widget">
<h4>Documentation</h4>