Hey Thomas, just curious, I have not come across that plugin of yours and I was wondering what it does and where I can find documentation about it, since I can't seem to locate it in the symfony plugins section (other than on trac).
Thanks, Daniel On Apr 24, 9:50 am, Thomas Rabaix <[email protected]> wrote: > just use > swUserContextCacheFilter.class.php<http://trac.symfony-project.org/browser/plugins/swToolboxPlugin/sf1.2...>class > as your cache filter ;) > > If your main action is name 'view', just create a executeView_UserContext > action. This method will be always called. So you can perform user specific > code in that action. > > http://trac.symfony-project.org/browser/plugins/swToolboxPlugin/sf1.2... > > > > On Fri, Apr 24, 2009 at 6:18 PM, HiDDeN <[email protected]> wrote: > > > Yes, I know that. I did read the book. But that action makes heavy > > queries to the database, so, if I just cache the listing of the data > > I'm getting, I will be executing always those heavy queries... that is > > the reason I was caching the action. > > > On Apr 24, 5:13 pm, Eno <[email protected]> wrote: > > > On Fri, 24 Apr 2009, HiDDeN wrote: > > > > Eno, what you are recommending is to cache parts of the template. I > > > > need to cache the action as well. > > > > But you need the action to run as well. You can't have it both ways - > > > either you run the action or you dont. The only way you can get the > > action > > > to run every time is to NOT cache it; intead you cache partials and > > > fragments of the template. > > > > Seehttp:// > >www.symfony-project.org/book/1_2/12-Caching#chapter_12_sub_cac... > > > where it says: > > > > "Action caching applies to only a subset of actions. For the other > > > actions--those that update data or display session-dependent information > > > in the template--there is still room for cache improvement but in a > > > different way. Symfony provides a third cache type, which is dedicated to > > > template fragments and enabled directly inside the template. In this > > mode, > > > the action is always executed, and the template is split into executed > > > fragments and fragments in the cache, ..." > > > > -- > > -- > Thomas Rabaixhttp://rabaix.net --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" 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/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---
