<?xml version="1.0"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Page comments</title>
		<link>http://www.ssbits.com/home/</link>
		<atom:link href="http://www.ssbits.com/home/" rel="self" type="application/rss+xml" />
		<description></description>

		
		<item>
			<title></title>
			<link>http://www.ssbits.com/snippets/2010/optimizing-complex-models/#PageComment_824</link>
			<description>More caching is discussed at
http://www.balbus.tk/caching-dataobjectsets/

That post indicates that the cache for an underscore method can be flushed by:
$obj-&gt;flush('FunctionName')

Hamish, or anyone, does that sound correct?

Also -- there is a bug discussed there that would seem to make all this moot.  Can you comment?

-John</description>
			<pubDate></pubDate>
			<dc:creator>RSSName</dc:creator>
			<guid>http://www.ssbits.com/snippets/2010/optimizing-complex-models/#PageComment_824</guid>
		</item>
		
		<item>
			<title></title>
			<link>http://www.ssbits.com/snippets/2010/optimizing-complex-models/#PageComment_612</link>
			<description>Why have they removed 90% of their old documentation? Surely they haven't removed the caching functionality, why remove the documentation for it?

Awesome post anyway Hamish.</description>
			<pubDate></pubDate>
			<dc:creator>RSSName</dc:creator>
			<guid>http://www.ssbits.com/snippets/2010/optimizing-complex-models/#PageComment_612</guid>
		</item>
		
		<item>
			<title></title>
			<link>http://www.ssbits.com/snippets/2010/optimizing-complex-models/#PageComment_306</link>
			<description>Hamish, the new documentation doesnt have caching documented..  does it still exist?

http://doc.silverstripe.org/objectmodel#caching </description>
			<pubDate></pubDate>
			<dc:creator>RSSName</dc:creator>
			<guid>http://www.ssbits.com/snippets/2010/optimizing-complex-models/#PageComment_306</guid>
		</item>
		
		<item>
			<title></title>
			<link>http://www.ssbits.com/snippets/2010/optimizing-complex-models/#PageComment_220</link>
			<description>I wonder if anybody successfully applied the caching mechanisms using the underscore prefix?
I'm pretty sure there's a bug in the code which I reported here: http://open.silverstripe.org/ticket/6241</description>
			<pubDate></pubDate>
			<dc:creator>RSSName</dc:creator>
			<guid>http://www.ssbits.com/snippets/2010/optimizing-complex-models/#PageComment_220</guid>
		</item>
		
		<item>
			<title></title>
			<link>http://www.ssbits.com/snippets/2010/optimizing-complex-models/#PageComment_198</link>
			<description>This is when I really wish we have the containable and recursive functions that cakePHP has.

It really does make control over your query easy and doesn't depend on on hacks like the above method. Lets face it, storing the company in two areas in a database is just not the best method of dealing with code. It when the framework is making things harder no easier.

In Sapphire we should be able to have param's when we query on an object to say what fields, related models and conditions we want in the results by using an array.

This would be very cakePHP ish but is just a good way to deal with the ORM side of things.</description>
			<pubDate></pubDate>
			<dc:creator>RSSName</dc:creator>
			<guid>http://www.ssbits.com/snippets/2010/optimizing-complex-models/#PageComment_198</guid>
		</item>
		
		<item>
			<title></title>
			<link>http://www.ssbits.com/snippets/2010/optimizing-complex-models/#PageComment_172</link>
			<description>FYI, the underscore behaviour is documented in the wiki here:

http://doc.silverstripe.org/objectmodel#caching

That has information about clearing the cached value for a particular method, method and arguments, or the all methods on an object.</description>
			<pubDate></pubDate>
			<dc:creator>RSSName</dc:creator>
			<guid>http://www.ssbits.com/snippets/2010/optimizing-complex-models/#PageComment_172</guid>
		</item>
		
		<item>
			<title></title>
			<link>http://www.ssbits.com/snippets/2010/optimizing-complex-models/#PageComment_171</link>
			<description>Wow, I just checked out the caching code for the Underscore Trick.  Anything that is based on the ViewableData class has this built in for all methods (which is setup on instantiation in the defineMethods() method). 

 It will use cachedCall on ANY method in the object (you can view in Dev mode with the ?debug_profile=1 url variable)

So an important note to developers is BE CAREFUL USING UNDERSCORES IN YOUR FUNCTION NAMES!  Especially if they return dynamic data, as cachedCall will only update on the first call.</description>
			<pubDate></pubDate>
			<dc:creator>RSSName</dc:creator>
			<guid>http://www.ssbits.com/snippets/2010/optimizing-complex-models/#PageComment_171</guid>
		</item>
		
		<item>
			<title></title>
			<link>http://www.ssbits.com/snippets/2010/optimizing-complex-models/#PageComment_151</link>
			<description>thanks for sharing the tip Hamish, i have a question: when BigQuery is updated in memory?</description>
			<pubDate></pubDate>
			<dc:creator>RSSName</dc:creator>
			<guid>http://www.ssbits.com/snippets/2010/optimizing-complex-models/#PageComment_151</guid>
		</item>
		
		<item>
			<title></title>
			<link>http://www.ssbits.com/snippets/2010/optimizing-complex-models/#PageComment_150</link>
			<description>Very useful tricks for imporving the performance for doing the DataObject retrieving.. 
Thanks for sharing</description>
			<pubDate></pubDate>
			<dc:creator>RSSName</dc:creator>
			<guid>http://www.ssbits.com/snippets/2010/optimizing-complex-models/#PageComment_150</guid>
		</item>
		
		<item>
			<title></title>
			<link>http://www.ssbits.com/snippets/2010/optimizing-complex-models/#PageComment_149</link>
			<description>That is a super handy tip about the underscore prefix! cheers</description>
			<pubDate></pubDate>
			<dc:creator>RSSName</dc:creator>
			<guid>http://www.ssbits.com/snippets/2010/optimizing-complex-models/#PageComment_149</guid>
		</item>
		

	</channel>
</rss>