static function cleanup(&$nodeList) { if (!is_array($nodeList)) { return; } $cacheDir = eZTemplateCacheFunction::templateBlockCacheDir(); foreach ($nodeList as $node) { $pathString = $node->attribute('path_string'); $pathString = trim($pathString, '/'); $nodeListID = explode('/', $pathString); foreach ($nodeListID as $nodeID) { $cachePath = $cacheDir . eZTemplateCacheFunction::subtreeCacheSubDirForNode($nodeID); eZSubtreeCache::cleanupCacheDir($cachePath); } } }