Thanks. I am half way thru deciding. I am building a function just to get those 4 fields and cache the data. requestAction might come next depending on how I feel. requestAction in my case would only be called if the user wants to open the page in a new Window why is beyond me but I can not predict the habits of every user.
Thanks guys. K From: [email protected] [mailto:[email protected]] On Behalf Of Larry E. Masters Sent: Thursday, February 24, 2011 11:42 PM To: [email protected] Subject: Re: requestAction question When used properly it has it uses. But I did not think people would use it the way they do when I added it the core. http://mark-story.com/posts/view/how-using-requestaction-increased-performan ce-on-my-site -- Larry E. Masters On Thu, Feb 24, 2011 at 8:31 PM, Sam Sherlock <[email protected]> wrote: Andy Gale mentions that requestAction was not an option for use in a large scale site (in video on the tv site) http://mark-story.com/posts/view/reducing-requestaction-use-in-your-cakephp- sites-with-fat-models this article by teknoid is about menu specifically - I just found it & bookmarked it http://nuts-and-bolts-of-cakephp.com/2008/08/20/dynamic-menus-without-reques taction-in-cakephp-12/ - S On 25 February 2011 00:21, Krissy Masters <[email protected]> wrote: Maybe I read it wrong back in the day but something idles in my head about requestAction being bad. Is this true or still in effect? I am using 1.3.7 and I think I remember reading back in 1.2 its better to not use that function. “If used without caching requestAction can lead to poor performance. It is rarely appropriate to use in a controller or model.” I have 1 element on 3 pages where I simply need to grab 4 fields from a db for the element. The element is loaded originally on the first page left side navigation column, and links load content into the main column so the element is never refreshed since its on the side nav column except if someone “open in new tab / window” on the link so the element has no data because its originally loaded on the main page. So rather than build that data call into each of those 3 pages I figured request would be the best option. My Picasso below :) Side Col | Main Col ___________________________________________________________________ | nav => loads into main | content gets loaded here via ajax |------------------------------------------------------------------| | | element | | ____________________________________________________________________ Just looking for some input on the matter. Thanks, K -- 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 -- 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 -- 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 -- 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
