Forums / Developer / cli script slow / Comment48509

Author Topic

Björn X

Wednesday 05 September 2007 5:43:50 am

Comment48509

eZOperationHandler::execute( 'content', 'publish', array( 'object_id' => $object->attribute( 'id' ), 'version' => $object->attribute('current_version')))

Well the contentobject publishing just needs quite a long time usually about 1 sec. You can`t really make it faster.

The only tips i can give you is execute this on a linux maschine and clear the internal object cache after every 100 contentobjects

Else it looks like you are working with existing objects and you try to just change some values

in this case you can:

- skip creating a new version, just use fetch(), setAtrribute() and store()

you basicly keep the current version