[symfony-users] Re: different cache versions for logged and non logged users

2009-08-07 Thread Zdanek


 -noauth for the cache when not logged in and just the username when they
 are logged in.

Make sense, will try to do that. Thanks
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[symfony-users] Re: different cache versions for logged and non logged users

2009-08-07 Thread Richtermeister

Also, I believe in sf1.2 you can specify the viewcache manager class,
so in there you may be able to add authentication into the cache key..

Daniel


On Aug 7, 12:49 am, Zdanek tom...@mikran.pl wrote:
  -noauth for the cache when not logged in and just the username when they
  are logged in.

 Make sense, will try to do that. Thanks
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[symfony-users] Re: different cache versions for logged and non logged users

2009-08-06 Thread Eno

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 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
-~--~~~~--~~--~--~---