summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-09-03 01:03:45 -0500
committerDan McGee <dan@archlinux.org>2010-09-03 01:04:03 -0500
commit45a14b3cbc826d97b2c630b0e95656f01638d03b (patch)
treec41cbc049b565d7ef536a354594800ce21af0a15
parent2dc0cafbb47fa67fde5ebe7876fb7566d660904a (diff)
Enable template fragment caching on package details page
We can't cache most of the package actions links stuff because we look at the user there, but we can cache everything on the left and the content of the bottom boxes. Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--templates/packages/details.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/templates/packages/details.html b/templates/packages/details.html
index 785bf626..0bc9f40f 100644
--- a/templates/packages/details.html
+++ b/templates/packages/details.html
@@ -1,4 +1,6 @@
{% extends "base.html" %}
+{% load cache %}
+
{% block title %}Arch Linux - {{ pkg.pkgname }} {{ pkg.pkgver }}-{{ pkg.pkgrel }} - Package Details{% endblock %}
{% block navbarclass %}anb-packages{% endblock %}
@@ -63,6 +65,7 @@
</div><!-- #actionlist -->
+ {% cache 300 package-details-pkginfo pkg.id %}
<table id="pkginfo">
<tr>
<th>Architecture:</th>
@@ -204,6 +207,8 @@
</div><!-- #pkgfiles -->
</div><!-- #metadata -->
+ {% endcache %}
+
</div><!-- #pkgdetails -->
{% load cdn %}{% jquery %}