From 45a14b3cbc826d97b2c630b0e95656f01638d03b Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Fri, 3 Sep 2010 01:03:45 -0500 Subject: 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 --- templates/packages/details.html | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'templates/packages/details.html') 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 @@

Versions Elsewhere

+ {% cache 300 package-details-pkginfo pkg.id %} @@ -204,6 +207,8 @@

+ {% endcache %} + {% load cdn %}{% jquery %} -- cgit v1.2.3-54-g00ecf

Architecture: