private function cleanIdentifierCache($root) { unset($this->nodeIdentifiers[$root]); foreach (array_keys($this->nodeIdentifiers) as $path) { if (strpos($path, "{$root}/") === 0) { unset($this->nodeIdentifiers[$path]); } } }