<?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"
	>
<channel>
	<title>Comments on: CakePHP&#8217;s cache that wouldn&#8217;t quit</title>
	<atom:link href="http://micropipes.com/blog/2008/01/07/cakephps-cache-that-wouldnt-quit/feed/" rel="self" type="application/rss+xml" />
	<link>http://micropipes.com/blog/2008/01/07/cakephps-cache-that-wouldnt-quit/</link>
	<description>because at 3am anything sounds good</description>
	<pubDate>Fri, 21 Nov 2008 09:14:08 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: ChR1ZmO</title>
		<link>http://micropipes.com/blog/2008/01/07/cakephps-cache-that-wouldnt-quit/#comment-17632</link>
		<dc:creator>ChR1ZmO</dc:creator>
		<pubDate>Thu, 23 Oct 2008 14:23:26 +0000</pubDate>
		<guid isPermaLink="false">http://micropipes.com/blog/2008/01/07/cakephps-cache-that-wouldnt-quit/#comment-17632</guid>
		<description>Oops!

It seems, that this blog strips all "tags" - so my code-example is gone... Here's the code again, but now WITHOUT the php-brackets (be sure to place them around the code!)

-----
&lt;pre&gt;
require_once(LIBS.'model'.DS.'dbo'.DS.'dbo_mysql.php');

class DboMysqlFixed extends DboMysql {
	function fetchAll($sql, $cache = false, $modelName = null) {
		return parent::fetchAll($sql, $cache, $modelName);
	}
}
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Oops!</p>
<p>It seems, that this blog strips all &#8220;tags&#8221; - so my code-example is gone&#8230; Here&#8217;s the code again, but now WITHOUT the php-brackets (be sure to place them around the code!)</p>
<p>&#8212;&#8211;</p>
<pre>
require_once(LIBS.'model'.DS.'dbo'.DS.'dbo_mysql.php');

class DboMysqlFixed extends DboMysql {
	function fetchAll($sql, $cache = false, $modelName = null) {
		return parent::fetchAll($sql, $cache, $modelName);
	}
}
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: ChR1ZmO</title>
		<link>http://micropipes.com/blog/2008/01/07/cakephps-cache-that-wouldnt-quit/#comment-17631</link>
		<dc:creator>ChR1ZmO</dc:creator>
		<pubDate>Thu, 23 Oct 2008 14:19:16 +0000</pubDate>
		<guid isPermaLink="false">http://micropipes.com/blog/2008/01/07/cakephps-cache-that-wouldnt-quit/#comment-17631</guid>
		<description>I had the same problem and it drove me nuts too.

Here's a working solution WITHOUT touching the cake-source-code...

- In your /config/database.php just change the database-driver-name to (i.e.) "mysql_fixed"
- Create a folder named "dbo" under your /models-directory and create the file "dbo_mysql_fixed.php"
- In this file, place the following code:



Note, that the classname is automatically translated with cake's Inflector-class - and be sure to include the right base-driver-class (in this example, it's mysql).

Now the default value of the parameter $cache is set to false...

Pwned! :-)</description>
		<content:encoded><![CDATA[<p>I had the same problem and it drove me nuts too.</p>
<p>Here&#8217;s a working solution WITHOUT touching the cake-source-code&#8230;</p>
<p>- In your /config/database.php just change the database-driver-name to (i.e.) &#8220;mysql_fixed&#8221;<br />
- Create a folder named &#8220;dbo&#8221; under your /models-directory and create the file &#8220;dbo_mysql_fixed.php&#8221;<br />
- In this file, place the following code:</p>
<p>Note, that the classname is automatically translated with cake&#8217;s Inflector-class - and be sure to include the right base-driver-class (in this example, it&#8217;s mysql).</p>
<p>Now the default value of the parameter $cache is set to false&#8230;</p>
<p>Pwned! <img src='http://micropipes.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: distributedlife &#187; CakePHP Unit Testing Gotchas</title>
		<link>http://micropipes.com/blog/2008/01/07/cakephps-cache-that-wouldnt-quit/#comment-16950</link>
		<dc:creator>distributedlife &#187; CakePHP Unit Testing Gotchas</dc:creator>
		<pubDate>Thu, 16 Oct 2008 13:56:21 +0000</pubDate>
		<guid isPermaLink="false">http://micropipes.com/blog/2008/01/07/cakephps-cache-that-wouldnt-quit/#comment-16950</guid>
		<description>[...] second problem relates to caching. It is summed up in this post by Wil Clouser called The Cache that wouldn’t quit. My problem was that I was taking a snapshot of my table before my query ran so I could validate [...]</description>
		<content:encoded><![CDATA[<p>[...] second problem relates to caching. It is summed up in this post by Wil Clouser called The Cache that wouldn’t quit. My problem was that I was taking a snapshot of my table before my query ran so I could validate [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: micropipes::blog &#187; Blog Archive &#187; Frameworks that start sessions for every visitor make me sad</title>
		<link>http://micropipes.com/blog/2008/01/07/cakephps-cache-that-wouldnt-quit/#comment-1721</link>
		<dc:creator>micropipes::blog &#187; Blog Archive &#187; Frameworks that start sessions for every visitor make me sad</dc:creator>
		<pubDate>Thu, 06 Mar 2008 07:00:54 +0000</pubDate>
		<guid isPermaLink="false">http://micropipes.com/blog/2008/01/07/cakephps-cache-that-wouldnt-quit/#comment-1721</guid>
		<description>[...] second framework, CakePHP, has an AUTO_SESSION variable that, just like $cacheQueries, is far to easy to misplace faith [...]</description>
		<content:encoded><![CDATA[<p>[...] second framework, CakePHP, has an AUTO_SESSION variable that, just like $cacheQueries, is far to easy to misplace faith [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yihfeng</title>
		<link>http://micropipes.com/blog/2008/01/07/cakephps-cache-that-wouldnt-quit/#comment-1626</link>
		<dc:creator>yihfeng</dc:creator>
		<pubDate>Thu, 28 Feb 2008 03:12:53 +0000</pubDate>
		<guid isPermaLink="false">http://micropipes.com/blog/2008/01/07/cakephps-cache-that-wouldnt-quit/#comment-1626</guid>
		<description>I had the exact same problem as you did, and I couldn't fix it with the fixes you recommended above (which  makes lots of sense, looking at the Cake source code). 

In the end I just learned to live with it, since I couldn't fix it. I did stuff like having little arrays to 'cache' things myself etc etc. Ugly stuff. But works.

That's the thing with Cake. All good, until the magic fails :(</description>
		<content:encoded><![CDATA[<p>I had the exact same problem as you did, and I couldn&#8217;t fix it with the fixes you recommended above (which  makes lots of sense, looking at the Cake source code). </p>
<p>In the end I just learned to live with it, since I couldn&#8217;t fix it. I did stuff like having little arrays to &#8216;cache&#8217; things myself etc etc. Ugly stuff. But works.</p>
<p>That&#8217;s the thing with Cake. All good, until the magic fails <img src='http://micropipes.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
</channel>
</rss>
