Snippets for eZ publish 3: In-memory object cache

Clearing the cache

When looping over a big amount of content objects or tree nodes, fetch them in cycles of 100 or less and after each cycle, clear the in-memory object cache:

include_once( 'kernel/classes/ezcontentobject.php' );
eZContentObject::clearCache();

External resources