On Thu, 6 Aug 2009, Zdanek wrote: > I have this problem. Lets assume I have user items list with Url: > http://localhost/:username/list. Then I can have different versions of > this list based on if user is logged or not (displaying some user > private items). But it seems that it is impossible to have 2 cache > versions within same URL address. > > Is that possible to add cache suffix (for ex. _auth, _no_aut) to cache > files and then display cache files accordingly.
If you are caching a partial, a component or a template fragment, you can specify the cache key. So, for example, you could use the username and add "-noauth" for the cache when not logged in and just the username when they are logged in. Most probably you are caching the whole action too - you might need to switch off caching of the action and switch to caching partials, components and template fragments. -- --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
