Re: Elements vs requestAction

2007-05-10 Thread gerhardsletten
Hi Tane Is it possible to cache an spesific element in 1.1 or is it a new function in 1.2? Can you give us an example? On May 9, 4:00 am, Tane Piper [EMAIL PROTECTED] wrote: I actually like to mix the two. What I find best is to create an element, and put the rA() inside it. Then I can use

Re: Elements vs requestAction

2007-05-10 Thread Sliv
Tane's Bakery Article: http://bakery.cakephp.org/articles/view/optimizing-your-cakephp-elements-and-views-with-caching On May 10, 4:06 pm, gerhardsletten [EMAIL PROTECTED] wrote: Hi Tane Is it possible to cache an spesific element in 1.1 or is it a new function in 1.2? Can you give us an

Re: Elements vs requestAction

2007-05-09 Thread AD7six
On 9 mayo, 03:43, Sliv [EMAIL PROTECTED] wrote: I believe from what I've read, that a big reason for not using a series of requestActions is performance. Run a series ofrequestActioncalls and check the speed. Cake Processing

Re: Elements vs requestAction

2007-05-09 Thread Tane Piper
I actually like to mix the two. What I find best is to create an element, and put the rA() inside it. Then I can use element caching to speeding things up, and reduce the load. Of course, you may find that when you update data on your site, these elements don't update right away - what you

Re: Elements vs requestAction

2007-05-09 Thread Samuel DeVore
one advantage to using elements is that in 1.2 you can cache them for periods of time thus helping your performance as well On 5/9/07, Tane Piper [EMAIL PROTECTED] wrote: I actually like to mix the two. What I find best is to create an element, and put the rA() inside it. Then I can use

Re: Elements vs requestAction

2007-05-09 Thread buzznut
Thanks for the feedback!! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL

Elements vs requestAction

2007-05-08 Thread buzznut
As I have been working on my app, I find myself using elements quite often. I am wondering what the advantage/disadvantage is to just using a $this-requestAction call in a view and using the normal view file associated with the action instead of creating an element. Thanks for any comments or

Re: Elements vs requestAction

2007-05-08 Thread Sliv
I believe from what I've read, that a big reason for not using a series of requestActions is performance. Run a series of requestAction calls and check the speed. Cake Processing Explained: