Forums / Developer / Import memory problem / Comment51342
Olivier Versanne
Tuesday 23 June 2009 3:30:06 am
Hello,
I'm using these three functions and they're working quite well for some objects.
eZContentCacheManager::clearContentCache($object->attribute('id')); eZContentObject::clearCache(); eZContentCacheManager::clearAllContentCache();
But, for the attribute storage of an object:
$dataMap = $object->dataMap(); [...] $dataMap[$key]->setAttribute( $dataType, $content ); $dataMap[$key]->store(); // here
And for the publication of an object:
eZOperationHandler::execute( 'content', 'publish', array( 'object_id' => $object->attribute( 'id' ), 'version' => $object->attribute( 'current_version' ) ) );
the three previous functions don't work (memory is still used).
What should I do to free this memory?
Thanks a lot!