Friday 04 September 2009 1:07:30 pm
$user_hash is not unique enough for the user name, it's a hash of what the user has access to, so users with access to the same things have the same cache (read: for cache efficiency).
either remove the name from the code or do it like webin does it, see: http://svn.ez.no/svn/extensions/ezwebin/stable/1.3/packages/ezwebin_extension/ezextension/ezwebin/design/ezwebin/templates/pagelayout.tpl First cache block is pr user:
{cache-block keys=array( $uri_string, $basket_is_empty, $user_id )}
Second (nested cache-block) does not use user id, and therefor is shared among several users, it is after the logout (<name>) code (and the basket code):
{cache-block keys=array( $uri_string, $user_hash )}
So you can safely close your issue, if you want to be 100% sure:
* login with a user that has exactly the same rights as you meaning same user group and if any, same direct roles (create a new user if you have to).
* Then surf around your site and logout
* Login with your regular user and observe that the other users name is in logout link * Click on profile link ( /user/edit )
Make sure you do the three last steps while no one is publishing content or clearing cache. If you on last point see the other users profile, then you have session issues or someone screwed up and didn't close the cache-block before $moduel_result.content line. If you don't then it's just cache issue as explained above.
eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom
|