From 96c59b1dc22b7318eadeaec11e7fed25829cecd5 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sat, 16 Apr 2011 07:25:47 -0500 Subject: Add some simple template caching on developer dashboard Signed-off-by: Dan McGee --- templates/devel/index.html | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/templates/devel/index.html b/templates/devel/index.html index 92332c7a..2eae0815 100644 --- a/templates/devel/index.html +++ b/templates/devel/index.html @@ -1,4 +1,6 @@ {% extends "base.html" %} +{% load cache %} + {% block title %}Arch Linux - Developer Dashboard{% endblock %} {% block content %} @@ -98,6 +100,7 @@ +{% cache 60 dev-dash-by-arch %}

Stats by Architecture

@@ -124,9 +127,10 @@ {% endfor %} +
{# #dash-by-arch #} +{% endcache %} - - +{% cache 60 dev-dash-by-repo %}

Stats by Repository

@@ -153,9 +157,10 @@ {% endfor %} +
{# dash-by-arch #} +{% endcache %} - - +{% cache 60 dev-dash-by-maintainer %}

Stats by Maintainer

@@ -191,8 +196,9 @@ {% endfor %} +
{# #dash-by-maintainer #} +{% endcache %} - {% load cdn %}{% jquery %} -- cgit v1.2.3-55-g3dc8