2010/3/30 Antoine S. <antoine.spodobal...@gmail.com>: > Hi, > > First you don't really need the doc. > The most important is : you can have a cache.yml file at different > level and refine for any module, action, partial. > > Second, the contextual option is very important. If it's "true", it > will parse the parameters to store the cache file. > Ex: if you cache a product page with contextual true, for any id in > the url (so each product) will have its own cache.
This will not work in my case - for the same url I may have a different content in _list partial for different user. > > You can sometimes "force" to use the contextual. > Ex. I have a partial : _header_layout.php with a basic menu and a > text : "Hello Username". > Because I can't store this partial for all user, I have to make it > contextual to the user. > include_partial('header_layout', array($user=>$sf_user->getId()); Same situation here - but I don't cache layout. > > For your application, you probably don't want a cache for the editor > (you will spend time to delete the cache), > but a cache for the visitor. Good poit. But I need to delete cache after each edition - because something may become visible or not visible for visitors. > I extend sfViewCacheManager, overrride ignore() to ignore the cache on > special credential (ex. editor) > > > I can't help you more I think. It depends then of your application and > choice. > Then, you have sometimes to restructure (/isolate) to be able to use a > cache. Yes, this is what I need to do in my case. Thanks for your answer Regards, Michal > > > On Mar 30, 2:41 am, Michał Piotrowski <mkkp...@gmail.com> wrote: >> 2010/3/29 Massimiliano Arione <garak...@gmail.com>: >> >> > The solution is to not cache the entire action. Just cache parts of it >> > (e.g. partials) >> >> It is not possible in my case - for example I've got >> >> indexSuccess.php that include >> _list.php that include >> _show.php >> >> I need to change some design concepts and use normal cache. >> >> Regards, >> Michal >> >> >> >> > cheers >> > Massimiliano >> >> > On 28 Mar, 22:42, Micha³ Piotrowski <mkkp...@gmail.com> wrote: >> >> 2010/3/28 Antoine S. <antoine.spodobal...@gmail.com>: >> >> >> > Hi, >> >> >> > You can refine the cache (cache.yml) at any level : application, >> >> > module, action, component, partial >> >> >> > see the doc >> >> >> Can you point me to the doc that you are referring? >> >> >> I have checked in symfony 1.4 refernece "The cache.yml Configuration >> >> File",http://www.symfony-project.org/book/1_2/12-Cachinghttp://www.symfony-... >> >> and few others returned by google. >> >> >> It always works in this >> >> wayhttp://www.symfony-project.org/images/jobeet/1_4/21/flow_cache_page.png >> >> >> Maybe I'm blind, but I don't see any way to execute an action here... >> >> >> Regards, >> >> Michal >> >> > -- >> > If you want to report a vulnerability issue on symfony, please send it to >> > security at symfony-project.com >> >> > You received this message because you are subscribed to the Google >> > Groups "symfony users" group. >> > To post to this group, send email to symfony-users@googlegroups.com >> > To unsubscribe from this group, send email to >> > symfony-users+unsubscr...@googlegroups.com >> > For more options, visit this group at >> >http://groups.google.com/group/symfony-users?hl=en >> >> > To unsubscribe from this group, send email to >> > symfony-users+unsubscribegooglegroups.com or reply to this email with the >> > words "REMOVE ME" as the subject. > > -- > If you want to report a vulnerability issue on symfony, please send it to > security at symfony-project.com > > You received this message because you are subscribed to the Google > Groups "symfony users" group. > To post to this group, send email to symfony-users@googlegroups.com > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en > > To unsubscribe from this group, send email to > symfony-users+unsubscribegooglegroups.com or reply to this email with the > words "REMOVE ME" as the subject. > -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en To unsubscribe from this group, send email to symfony-users+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.