From 3e5e205de804ed078b14bffa16ad11be5a189e20 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20St=C4=99pniowski?= Date: Mon, 1 Sep 2008 01:16:46 +0200 Subject: [PATCH] Added caching of latest blog posts fetched from wolnepodreczniki blog. --- templates/catalogue/main_page.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/catalogue/main_page.html b/templates/catalogue/main_page.html index 507fa3a95..db7c95de3 100644 --- a/templates/catalogue/main_page.html +++ b/templates/catalogue/main_page.html @@ -1,5 +1,5 @@ {% extends "base.html" %} -{% load catalogue_tags chunks %} +{% load catalogue_tags chunks cache %} {% block bodyid %}main-page{% endblock %} @@ -83,6 +83,8 @@

Aktualności z naszego bloga

+ {% cache 1800 latest-blog-posts %} {% latest_blog_posts "http://wolnepodreczniki.pl/feed/?s=Wolne%20Lektury" %} + {% endcache %}
{% endblock %} -- 2.20.1