Mercurial > public > sg101
diff gpp/templates/home.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 | c018872385ea |
children | e249b5f9d180 |
line wrap: on
line diff
--- a/gpp/templates/home.html Fri Jun 12 02:37:28 2009 +0000 +++ b/gpp/templates/home.html Sun Jun 14 20:25:22 2009 +0000 @@ -3,6 +3,7 @@ {% load news_tags %} {% load weblinks_tags %} {% load downloads_tags %} +{% load cache %} {% block title %}Home{% endblock %} {% block custom_css %} <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/news.css" /> @@ -35,6 +36,7 @@ permanent. The site (content, user accounts, etc.) may be wiped at any time while we fix bugs and add features. Also, I hope that the look and feel of this site can be greatly improved to something really cool! I'll need lots of help for this aspect, as I'm more of a coder than a designer.</p> +{% cache 600 home_content %} {% current_bulletins %} {% current_news %} <div class="span-9 append-1"> @@ -43,4 +45,5 @@ <div class="span-9 last"> {% latest_downloads %} </div> +{% endcache %} {% endblock %}