Share » Forums » Developer » cache and users

cache and users

cache and users

Wednesday 09 June 2010 5:24:38 am - 2 replies

Author Message

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

laurent le cadet

Wednesday 09 June 2010 7:05:44 am

André,

Roles and policies can't served me as users belongs to the same group.
Contents I want to change are in $module_result, full or line view, which is rather different as this is the view cache which is concerned.

Laurent

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu