--- kernel/classes/clusterfilehandlers/ezfsfilehandler.php 2010-03-30 13:19:46.000000000 +0200 +++ kernel/classes/clusterfilehandlers/ezfsfilehandler.php 2012-05-30 17:46:51.000000000 +0200 @@ -711,15 +711,19 @@ function fileDeleteByDirList( $dirList, $commonPath, $commonSuffix ) { $dirs = implode( ',', $dirList ); - $wildcard = $commonPath .'/{' . $dirs . '}/' . $commonSuffix . '*'; eZDebugSetting::writeDebug( 'kernel-clustering', "fs::fileDeleteByDirList( '$dirs', '$commonPath', '$commonSuffix' )", __METHOD__ ); eZDebug::accumulatorStart( 'dbfile', false, 'dbfile' ); - $unlinkArray = eZSys::globBrace( $wildcard ); - if ( $unlinkArray !== false and ( count( $unlinkArray ) > 0 ) ) + + foreach( $dirList as $dir ) { - array_map( 'unlink', $unlinkArray ); + $wildcard = $commonPath .'/{' . $dir . '}/' . $commonSuffix . '*'; + $unlinkArray = eZSys::globBrace( $wildcard ); + if ( $unlinkArray !== false and ( count( $unlinkArray ) > 0 ) ) + { + array_map( 'unlink', $unlinkArray ); + } } eZDebug::accumulatorStop( 'dbfile' ); }