On Mon, 18 Jan 2010, Nicolas CHARLOT wrote: > I need to store 2 versions of a same action depending on user status > (authenticated and member or not). > > The solution I founded was to write my own viewCacheManager: > It works but all actions are cached twice and it's not necessary. I'm looking > for the best practice to do that.
The solution for this is simple: you just need to set a cache key for each version of the page (i.e. auth, non-auth, etc). Alexandru's advice ton read the caching chapter was correct. Does the whole page change or just bits of it? If its just parts of the page, make them into partials and set cache keys for each version of the partial. --
-- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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.