<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: REST + caching = BOOOM!</title>
	<atom:link href="http://soledadpenades.com/2007/05/15/rest-caching-booom/feed/" rel="self" type="application/rss+xml" />
	<link>http://soledadpenades.com/2007/05/15/rest-caching-booom/</link>
	<description>repeat 4[fd 100 rt 90]</description>
	<lastBuildDate>Mon, 30 Jan 2012 21:18:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: sole</title>
		<link>http://soledadpenades.com/2007/05/15/rest-caching-booom/#comment-37466</link>
		<dc:creator>sole</dc:creator>
		<pubDate>Wed, 16 May 2007 08:06:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.soledadpenades.com/2007/05/15/rest-caching-booom/#comment-37466</guid>
		<description>Thanks guys! It might be good since both of you pointed to the same solution :-)</description>
		<content:encoded><![CDATA[<p>Thanks guys! It might be good since both of you pointed to the same solution :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://soledadpenades.com/2007/05/15/rest-caching-booom/#comment-37465</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Wed, 16 May 2007 07:35:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.soledadpenades.com/2007/05/15/rest-caching-booom/#comment-37465</guid>
		<description>Perhaps the easiest solution is just to add an &quot;archive&quot; action to your PostsController and update the routing as follows:

map.resources :posts, :collection =&gt; { :archive =&gt; :get }

Alternatively you could try the action_cache plugin (http://agilewebdevelopment.com/plugins/action_cache), this allows you to overide the cache key (hence allowing the URL parameter to be stored).</description>
		<content:encoded><![CDATA[<p>Perhaps the easiest solution is just to add an &#8220;archive&#8221; action to your PostsController and update the routing as follows:</p>
<p>map.resources :posts, :collection =&gt; { :archive =&gt; :get }</p>
<p>Alternatively you could try the action_cache plugin (<a href="http://agilewebdevelopment.com/plugins/action_cache" rel="nofollow">http://agilewebdevelopment.com/plugins/action_cache</a>), this allows you to overide the cache key (hence allowing the URL parameter to be stored).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raul</title>
		<link>http://soledadpenades.com/2007/05/15/rest-caching-booom/#comment-37464</link>
		<dc:creator>Raul</dc:creator>
		<pubDate>Wed, 16 May 2007 06:39:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.soledadpenades.com/2007/05/15/rest-caching-booom/#comment-37464</guid>
		<description>I didn&#039;t tried caching yet but as far as I know it doesn&#039;t play nice with those ugly ?param=value parameters. Maybe you could modify your routes.rb to something like this:

map.connect &#039;posts-archive/&#039;,
  :controller =&gt; &#039;posts&#039;, 
  :action =&gt; &#039;index&#039;, 
  :type =&gt; &#039;archive&#039;

This way you would preserve your controller and action and get a new clean -and hopefully cacheable- URL.</description>
		<content:encoded><![CDATA[<p>I didn&#8217;t tried caching yet but as far as I know it doesn&#8217;t play nice with those ugly ?param=value parameters. Maybe you could modify your routes.rb to something like this:</p>
<p>map.connect &#8216;posts-archive/&#8217;,<br />
  :controller =&gt; &#8216;posts&#8217;,<br />
  :action =&gt; &#8216;index&#8217;,<br />
  :type =&gt; &#8216;archive&#8217;</p>
<p>This way you would preserve your controller and action and get a new clean -and hopefully cacheable- URL.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian</title>
		<link>http://soledadpenades.com/2007/05/15/rest-caching-booom/#comment-37462</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Wed, 16 May 2007 03:07:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.soledadpenades.com/2007/05/15/rest-caching-booom/#comment-37462</guid>
		<description>Instead of using GET parameters, use the extra routing in map.resources.

map.resources :posts, :collection =&gt; { :archive =&gt; :get }

This will get you:

GET /posts =&gt; PostsController#index

and

GET /posts/archive =&gt; PostsController#archive</description>
		<content:encoded><![CDATA[<p>Instead of using GET parameters, use the extra routing in map.resources.</p>
<p>map.resources :posts, :collection =&gt; { :archive =&gt; :get }</p>
<p>This will get you:</p>
<p>GET /posts =&gt; PostsController#index</p>
<p>and</p>
<p>GET /posts/archive =&gt; PostsController#archive</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yan</title>
		<link>http://soledadpenades.com/2007/05/15/rest-caching-booom/#comment-37460</link>
		<dc:creator>Yan</dc:creator>
		<pubDate>Wed, 16 May 2007 00:07:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.soledadpenades.com/2007/05/15/rest-caching-booom/#comment-37460</guid>
		<description>One thing to try is to use routes, which will not only make your urls&#039; prettier but make the caching work automatically. So turn /posts?type=archives into /posts/archive. Also check out this plugin: http://agilewebdevelopment.com/plugins/action_cache, it may help with some things. I have not done exactly what you&#039;re doing here yet though so these are just general hints...</description>
		<content:encoded><![CDATA[<p>One thing to try is to use routes, which will not only make your urls&#8217; prettier but make the caching work automatically. So turn /posts?type=archives into /posts/archive. Also check out this plugin: <a href="http://agilewebdevelopment.com/plugins/action_cache" rel="nofollow">http://agilewebdevelopment.com/plugins/action_cache</a>, it may help with some things. I have not done exactly what you&#8217;re doing here yet though so these are just general hints&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

