summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-09-03 08:03:45 +0200
committerDan McGee <dan@archlinux.org>2010-09-03 08:04:03 +0200
commit45a14b3cbc826d97b2c630b0e95656f01638d03b (patch)
treec41cbc049b565d7ef536a354594800ce21af0a15
parent2dc0cafbb47fa67fde5ebe7876fb7566d660904a (diff)
downloadarchweb-45a14b3cbc826d97b2c630b0e95656f01638d03b.tar.gz
archweb-45a14b3cbc826d97b2c630b0e95656f01638d03b.tar.xz
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 785bf62..0bc9f40 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 %}