On Feb 9, 2011, at 20:54, ShadowCross wrote: > On Feb 9, 4:41 pm, Ryan Schmidt wrote: >> Regardless whether I call doSomething or doAnotherThing, essentially the >> same find command is run twice; this seems wasteful. How should I structure >> this so that the data is not fetched a second time? >> >> Or does some manner of CakePHP caching make this a non-issue? (Is there >> query results caching?) > > See: http://book.cakephp.org/view/1069/cacheQueries
Thanks, I knew I'd seen something about that before. This sounds useful. Is this the best way to handle the problem? Is there any downside? Any reason I shouldn't just turn on cacheQueries all the time in my AppModel? The book page above doesn't provide any guidance. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
