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 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 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 need to do is in your > > model, in the afterSave method is to use the PHP function unlink() and > > delete the cached element. > > > Tane > > > On 5/8/07, buzznut <[EMAIL PROTECTED]> wrote: > > > > 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 feedback. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
