From e1be5f1619d0f66897f56c7fa0bdb62f3cd5c2df Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sat, 10 Jul 2010 16:24:11 -0500 Subject: Add some more template fragment caching Signed-off-by: Dan McGee --- templates/public/donate.html | 4 ++++ templates/public/download.html | 4 ++++ templates/public/userlist.html | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/templates/public/donate.html b/templates/public/donate.html index 664f6c5d..3e4e50c9 100644 --- a/templates/public/donate.html +++ b/templates/public/donate.html @@ -1,7 +1,10 @@ {% extends "base.html" %} +{% load cache %} + {% block title %}Arch Linux - Donate{% endblock %} {% block content %} +{% cache 600 donations %}

Donate to Arch Linux

@@ -83,4 +86,5 @@

A huge thanks to you all for your contributions!

+{% endcache %} {% endblock %} diff --git a/templates/public/download.html b/templates/public/download.html index 2f1bc8bd..09209c96 100644 --- a/templates/public/download.html +++ b/templates/public/download.html @@ -1,4 +1,6 @@ {% extends "base.html" %} +{% load cache %} + {% block title %}Arch Linux - Downloads{% endblock %} {% block navbarclass %}anb-download{% endblock %} @@ -133,6 +135,7 @@ {% endwith %} + {% cache 600 download-mirrors %} @@ -157,6 +160,7 @@
+ {% endcache %}

If you want to become an Official Arch Linux Mirror please follow the instructions listed here.

diff --git a/templates/public/userlist.html b/templates/public/userlist.html index 658e64e6..c51215c3 100644 --- a/templates/public/userlist.html +++ b/templates/public/userlist.html @@ -1,7 +1,10 @@ {% extends "base.html" %} +{% load cache %} + {% block title %}Arch Linux - {{ user_type }}{% endblock %} {% block content %} +{% cache 600 dev-tu-profiles user_type %}

Arch Linux {{user_type}}

@@ -13,4 +16,5 @@ {% endwith %}
+{% endcache %} {% endblock %} -- cgit v1.2.3-55-g3dc8