summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-07-10 16:24:11 -0500
committerDan McGee <dan@archlinux.org>2010-07-10 16:24:11 -0500
commite1be5f1619d0f66897f56c7fa0bdb62f3cd5c2df (patch)
tree3091565e80bcea7cee452693481a66c96db9aa77
parent6b4c8e63b3a13bae23330aef33f69352fa02dff6 (diff)
downloadarchweb-e1be5f1619d0f66897f56c7fa0bdb62f3cd5c2df.tar.gz
archweb-e1be5f1619d0f66897f56c7fa0bdb62f3cd5c2df.zip
Add some more template fragment caching
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--templates/public/donate.html4
-rw-r--r--templates/public/download.html4
-rw-r--r--templates/public/userlist.html4
3 files changed, 12 insertions, 0 deletions
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 %}
<div id="donations" class="box">
<h2>Donate to Arch Linux</h2>
@@ -83,4 +86,5 @@
<div class="clear"></div>
<p>A huge thanks to you all for your contributions!</p>
</div>
+{% 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 @@
</ul>
{% endwith %}
+ {% cache 600 download-mirrors %}
<table id="download-mirrors">
<thead>
<tr>
@@ -157,6 +160,7 @@
</td></tr>
</tbody>
</table>
+ {% endcache %}
<p>If you want to become an Official Arch Linux Mirror please follow the
instructions listed <a href="http://wiki.archlinux.org/index.php/DeveloperWiki:NewMirrors">here</a>.</p>
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 %}
<div id="dev-tu-profiles" class="box">
<h2>Arch Linux {{user_type}}</h2>
@@ -13,4 +16,5 @@
{% endwith %}
</div>
+{% endcache %}
{% endblock %}