Forums / Developer / cache and users / Comment59510
André R.
Wednesday 09 June 2010 6:58:57 am
If possible, use roles and policies (by using different user groups for instance) instead as they are supported by all caches (for cache blocks they are supported out of the box using $user_hash: http://svn.ez.no/svn/extensions/ezwebin/trunk/packages/ezwebin_extension/ezextension/ezwebin/design/ezwebin/templates/pagelayout.tpl)
But if you don't need to vary by this in the view of your content and just in pagelayout, then it shouldn't affect performance that much as you can use this variable as part of cache-block keys that are used around the section where you use it.
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