Cache problem with content(read) owner(self) role

Author Message

Benjamin Selmer

Monday 05 February 2007 12:16:02 am

I have set up a user role with content(read) owner(self).

But when a user logs on to view nodes that he is the owner of, he only sees the nodes of the previous user who logged on. If I clear the cache he can see his own nodes. But then the next user gets the same problem.

Is there anything I can do to avoid this? Some cache-block setting?

I'm running ezp 3.8.3.

hikesh hasmukh

Monday 05 February 2007 2:00:47 am

Maybe a cache-block closing tag is missing!

http://www.mzbusiness.com/

André R.

Monday 05 February 2007 3:08:21 am

Are you talking about the content view itself or the navigation.

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

Benjamin Selmer

Monday 05 February 2007 3:47:03 am

The content view.

Benjamin Selmer

Tuesday 06 February 2007 12:06:58 am

The same problem occured on a clean installation.

Is it a bug?

Kristof Coomans

Tuesday 06 February 2007 12:26:08 am

If you use the owner limitations, then you need to globally disable view caching, or disable it in the view template:

{set-block scope=root variable=cache_ttl}0{/set-block}

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

André R.

Tuesday 06 February 2007 12:59:42 am

Then you can cache the content view using cache block with user id as key instead, if necessary.

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

Benjamin Selmer

Monday 12 February 2007 12:48:15 am

{set-block scope=root variable=cache_ttl}0{/set-block}
did the job.

Thanks!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.