Hi,

I'm using the nodereferrer module and realize that it respects node access rights on node load, which is cool, but anyhow the content seems to be cached and so only built once... When I visit the page with admin rights some nodes are missing until I clear the cache, even in the node load (from devel)... I read the "to do" statement at the beginning of the module, but I thougt perhaps you have some hints, because I need it pretty urgent...

Thank you!

Comments

kris digital’s picture

Ok, because it is urgent I just put

case 'load':
		$cid = "content:$node->nid:";
		db_query("DELETE FROM {cache_content} WHERE cid LIKE '%s%%'", $cid);
	break;

in hook_nodeapi()

andypost’s picture

Version: 6.x-1.0-rc1 » 6.x-1.x-dev
Status: Active » Postponed (maintainer needs more info)

Overkill!!! could you provide a steps to reproduce?

kris digital’s picture

The problem was, that the node referrer links were only built once, when the page was viewed first. Then the links where written in the cache. If another user role viewed the page, he got the cached page, even if he should have seen other links because he had more or less access rights... So I ended up clearing the cache each time the page was loaded...

I think there are workarounds on the theming side, but I used it via webservice, so that above was the solution for me...