Ever heard of a session? Jeremy Burns Class Outfit
http://www.classoutfit.com On 11 Nov 2011, at 15:50, DigitalDude wrote: > Hey, > > > I was wondering if there is a chance to speed things up a little bit > by improving some functions in my app. > > One question that comes to mind is for example a sidebar. Currently, I > run some finds and gather some data for the sidebar (latest news, > status of the user, number of notifications etc) and set them to the > view from within the app_controller's before filter/render function. > > So what I'm interested in is a technique to get this data when the > user logs in, save them somewhere statically and maybe update this > data ONLY when changes are made to the model/database. > > Does anyone of you know ANY way to accomplish this with cake? I think > it is a bit redundant to constantly run these queries everytime the > app_controller is called and it could save a lot of time when those > queries could be cached or something like that. > > Only thing important is that when changes happen there should be a way > to then "manually" update those static info of the user so it does not > take a re-login to update the data. > > Any ideas? > > Regards, > > DD > > -- > 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 > cake-php+unsubscr...@googlegroups.com 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php