diff gpp/templates/base.html @ 43:2763977301c2

Added support for caching. The avatar template tag now uses the cache.
author Brian Neal <bgneal@gmail.com>
date Sun, 14 Jun 2009 20:25:22 +0000
parents 48b221d304c6
children 02e5dfa830cc
line wrap: on
line diff
--- a/gpp/templates/base.html	Fri Jun 12 02:37:28 2009 +0000
+++ b/gpp/templates/base.html	Sun Jun 14 20:25:22 2009 +0000
@@ -7,6 +7,7 @@
 {% load potd_tags %}
 {% load messages_tags %}
 {% load script_tags %}
+{% load cache %}
 <head><title>SurfGuitar101.com | {% block title %}{% endblock %}</title>
 <meta http-equiv="Content-Type" content="text/html" />
 <meta http-equiv="Content-Language" content="en-US" />
@@ -63,7 +64,9 @@
       <li><a href="{% url weblinks-main %}">Links</a></li>
       <li><a href="{% url downloads-index %}">Downloads</a></li>
    </ul>
-   {% photo_of_the_day %}
+   {% cache 300 potd_block %}
+      {% photo_of_the_day %}
+   {% endcache %}
    {% shoutbox %}
    {% irc_status %}
 </div>