Hey Eno, thanks for the reply - you're giving me hope! :)
If I could just bother you for the details on where I would set cache keys.. I have no idea where to do that, but it would have to be at a spot where I have access to the user class. Thanks again, Daniel On Jun 30, 10:04 pm, Eno <[email protected]> wrote: > On Wed, 30 Jun 2010, Richtermeister wrote: > > I have an app with 2 usergroups (admins and dealers), and dealers can > > fall into 3 brands. Those two factors affect the content of certain > > lists. Now, I'd like to cache certain sections, but of course I need > > to still worry about who sees what, and I'm thinking that in theory > > this should be as easy as making the two factors part of the cache > > key. > > This way, all combinations of dealer/admin and brands get individual > > caches. > > Is that the right thought, and where would I have to tinker to make > > this happen? I suspect the sfViewCacheManager is a good spot, but I'm > > unsure how exactly. > > Yes, using the groups (or combination of group + user) in your cache keys > works well. You shouldn't have to mess with any core classes to do this - > simply setting appropriate cache keys should suffice. > > -- -- 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 [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
