From: Marek Stępniowski Date: Sun, 31 Aug 2008 23:16:46 +0000 (+0200) Subject: Added caching of latest blog posts fetched from wolnepodreczniki blog. X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/3e5e205de804ed078b14bffa16ad11be5a189e20?hp=cd971b6b5cd892ade96067fbd38fe785bf5b5b03 Added caching of latest blog posts fetched from wolnepodreczniki blog. --- 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 %}