Forums / Developer / How to build an update CLI script without memory problem ? / Comment51106
Remigijus Kiminas
Monday 11 May 2009 12:07:05 pm
Hi,
Why so complicate everything :)
Just add that code bellow your foreach cycle. Every 25 nodes for example.
unset( $GLOBALS['eZContentObjectContentObjectCache'] ); unset( $GLOBALS['eZContentObjectDataMapCache'] );unset( $GLOBALS['eZContentObjectVersionCache'] );
And no hard coding :)
--------------------------------------------- Remigijus Kiminas