<?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: Speeding up Requests with Reverse Routing Caching</title>
	<atom:link href="http://blog.renangoncalves.com/2009/03/19/speeding-up-requests-with-reverse-routing-caching/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.renangoncalves.com/2009/03/19/speeding-up-requests-with-reverse-routing-caching/</link>
	<description>Make it run, then make it run better</description>
	<lastBuildDate>Fri, 07 Aug 2009 02:57:55 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Renan Gonçalves</title>
		<link>http://blog.renangoncalves.com/2009/03/19/speeding-up-requests-with-reverse-routing-caching/comment-page-1/#comment-113</link>
		<dc:creator>Renan Gonçalves</dc:creator>
		<pubDate>Thu, 26 Mar 2009 12:54:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.renangoncalves.com/?p=29#comment-113</guid>
		<description>Hey Oscar!

The criteria is hard-coded, so you to put beforeRender() something like this:
$this-&gt;_criteria = array(&#039;controller&#039;);
This example will create one cache entry for every controller you have.

I just updated the code and the post to allow the use o $full = true, thank you for this catch.


See ya!</description>
		<content:encoded><![CDATA[<p>Hey Oscar!</p>
<p>The criteria is hard-coded, so you to put beforeRender() something like this:<br />
$this->_criteria = array(&#8216;controller&#8217;);<br />
This example will create one cache entry for every controller you have.</p>
<p>I just updated the code and the post to allow the use o $full = true, thank you for this catch.</p>
<p>See ya!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oscar</title>
		<link>http://blog.renangoncalves.com/2009/03/19/speeding-up-requests-with-reverse-routing-caching/comment-page-1/#comment-110</link>
		<dc:creator>Oscar</dc:creator>
		<pubDate>Wed, 25 Mar 2009 08:28:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.renangoncalves.com/?p=29#comment-110</guid>
		<description>Hi!

Still haven&#039;t figured put how/where to pass the prefix to your code, but it doesn&#039;t matter that much for me. However, I ran into another more serious problem. When passing true to the &quot;full&quot; parameter in the URL function, of doesn&#039;t take that into account when getting the info from the cache, so it returns the URL without the base address apended. At least I think that&#039;s what happens (I&#039;m using it for sending emails). Suggestions?</description>
		<content:encoded><![CDATA[<p>Hi!</p>
<p>Still haven&#8217;t figured put how/where to pass the prefix to your code, but it doesn&#8217;t matter that much for me. However, I ran into another more serious problem. When passing true to the &#8220;full&#8221; parameter in the URL function, of doesn&#8217;t take that into account when getting the info from the cache, so it returns the URL without the base address apended. At least I think that&#8217;s what happens (I&#8217;m using it for sending emails). Suggestions?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Renan Gonçalves</title>
		<link>http://blog.renangoncalves.com/2009/03/19/speeding-up-requests-with-reverse-routing-caching/comment-page-1/#comment-107</link>
		<dc:creator>Renan Gonçalves</dc:creator>
		<pubDate>Tue, 24 Mar 2009 12:59:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.renangoncalves.com/?p=29#comment-107</guid>
		<description>Hey Oscar!

Good catch with the double empty, its really a highlighting problem. I&#039;m going to create a ticket for it. Thank&#039;s.

The code as improved in two ways:
1 - You can define a separated cache settings for this. Its named &quot;_app_urls_&quot;. Its mean that you can use FileEngineCache for model caches and so on and use APC for this particular cache. (Take a look on this article &lt;a href=&quot;http://tinyurl.com/cdj4mk&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;Cache duration and configuration tips&lt;/a&gt;)
2 - Putting more keys on $this-&gt;_criteria you can separate the caches. I&#039;m using $this-&gt;_criteria = array(&#039;prefix&#039;) its mean that will be created two caches: Front-end cache and Back-end (admin) cache.

Thank you for your reply!</description>
		<content:encoded><![CDATA[<p>Hey Oscar!</p>
<p>Good catch with the double empty, its really a highlighting problem. I&#8217;m going to create a ticket for it. Thank&#8217;s.</p>
<p>The code as improved in two ways:<br />
1 &#8211; You can define a separated cache settings for this. Its named &#8220;_app_urls_&#8221;. Its mean that you can use FileEngineCache for model caches and so on and use APC for this particular cache. (Take a look on this article <a href="http://tinyurl.com/cdj4mk" target="_blank" rel="nofollow">Cache duration and configuration tips</a>)<br />
2 &#8211; Putting more keys on $this->_criteria you can separate the caches. I&#8217;m using $this->_criteria = array(&#8216;prefix&#8217;) its mean that will be created two caches: Front-end cache and Back-end (admin) cache.</p>
<p>Thank you for your reply!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oscar</title>
		<link>http://blog.renangoncalves.com/2009/03/19/speeding-up-requests-with-reverse-routing-caching/comment-page-1/#comment-106</link>
		<dc:creator>Oscar</dc:creator>
		<pubDate>Tue, 24 Mar 2009 08:36:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.renangoncalves.com/?p=29#comment-106</guid>
		<description>Hi!

In what way, more exactly, is this code improved?

Also line 33 looks funky here: &quot;if (!emptyempty($this-&gt;_cache[$key])) {&quot; but it only seems to be the highlighting, plain mode looks fine. Strange.</description>
		<content:encoded><![CDATA[<p>Hi!</p>
<p>In what way, more exactly, is this code improved?</p>
<p>Also line 33 looks funky here: &#8220;if (!emptyempty($this-&gt;_cache[$key])) {&#8221; but it only seems to be the highlighting, plain mode looks fine. Strange.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CakePHP Digest #10 - News Overload &#124; PseudoCoder.com</title>
		<link>http://blog.renangoncalves.com/2009/03/19/speeding-up-requests-with-reverse-routing-caching/comment-page-1/#comment-105</link>
		<dc:creator>CakePHP Digest #10 - News Overload &#124; PseudoCoder.com</dc:creator>
		<pubDate>Tue, 24 Mar 2009 02:56:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.renangoncalves.com/?p=29#comment-105</guid>
		<description>[...] a continuation off a couple of posts mentioned in the last digest, Renan Gonçalves posted a modified version of my code. If only one of us had commit access and could sneak this into the core [...]</description>
		<content:encoded><![CDATA[<p>[...] a continuation off a couple of posts mentioned in the last digest, Renan Gonçalves posted a modified version of my code. If only one of us had commit access and could sneak this into the core [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
