Saturday 20 June 2009 2:53:36 pm
Hi I'm using PHP to publish objects and new versions of objects.
Sometimes, this goes fine. Sometimes, the changes dont show up in the admin until I clear the cache. The changes are there - f.e. I can see 5 versions of an object in the version history, but just looking at the node in the admin shows me the first version. In the code, after
$operationResult = eZOperationHandler::execute( 'content','publish',array(
'object_id' => $version->attribute( 'contentobject_id' ),
'version' => $version->attribute( 'version' )
));
I call
eZContentCacheManager::clearContentCacheIfNeeded(
$version->attribute('contentobject_id'),
$version->attribute('version')
);
Apparently, that's not enough. What other caches must I clear (and how?)
thanks, *-pike
---------------
The class eZContentObjectTreeNode does.
|