<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Moki Systems Blog &#187; Radiant</title>
	<atom:link href="http://www.mokisystems.com/blog/category/radiant/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mokisystems.com/blog</link>
	<description>Addressing such topics as: web programming, design, ruby on rails, cake php, postgresql, linux, seo</description>
	<lastBuildDate>Fri, 20 May 2011 15:22:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Fragment caching with Radiant CMS</title>
		<link>http://www.mokisystems.com/blog/fragment-caching-with-radiant-cms/</link>
		<comments>http://www.mokisystems.com/blog/fragment-caching-with-radiant-cms/#comments</comments>
		<pubDate>Tue, 10 Jun 2008 21:29:17 +0000</pubDate>
		<dc:creator>Wes Bangerter</dc:creator>
				<category><![CDATA[Radiant]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://www.mokisystems.com/blog/fragment-caching-with-radiant-cms/</guid>
		<description><![CDATA[We&#8217;re in the process of converting our website to Radiant CMS, and one of the new things on the site is a &#8220;Blog Blurbs&#8221; section at the bottom of every page that lists our latest blog post. Our blog is in Wordpress, so I setup the RSS Reader extension in Radiant to fetch the posts. [...]]]></description>
			<content:encoded><![CDATA[<p>We&#8217;re in the process of converting our website to <a href="http://www.radiantcms.com/">Radiant CMS</a>, and one of the new things on the site is a &#8220;Blog Blurbs&#8221; section at the bottom of every page that lists our latest blog post. Our blog is in Wordpress, so I setup the RSS Reader extension in Radiant to fetch the posts. Everything worked great, except that page loading was noticeably slower. After the page gets cached everything is fine but this is included on every page so going through the site when there were not cached pages was really frustrating. I thought about modifying the RSS Reader extension to cache our blog blurbs, but I figured a more general approach would work better, so I came up with a fragment caching extension. We&#8217;re using it like this:</p>

<div class="wp_syntax"><div class="code"><pre>&lt;r:cache name=&quot;rss_fragment&quot; time=&quot;60&quot;&gt;
  &lt;r:feed:items url=&quot;[feed_url]&quot; limit=&quot;1&quot;&gt;
    &lt;h3&gt;&lt;r:feed:link /&gt;&lt;/h3&gt;
    &lt;p&gt;&lt;r:feed:content max_length=&quot;300&quot; no_html=&quot;true&quot; /&gt;&lt;/p&gt;
  &lt;/r:feed:items&gt;
&lt;/r:cache&gt;</pre></div></div>

<p>The code is at <a href="http://github.com/mokisystems/radiant-fragment-cacher/tree/master">github</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mokisystems.com/blog/fragment-caching-with-radiant-cms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

