public function updateAfterDeleteFolder($folder)
{
if (!$this->_cache->hasNamespace()) {
// Cache not synchronized yet.
return;
}
$folder_list = $this->_cache->getFolders();
$folder_list = array_diff($folder_list, array($folder));
$annotations = $this->_cache->getFolderTypes();
if (isset($annotations[$folder])) {
unset($annotations[$folder]);
}
$namespace = unserialize($this->_cache->getNamespace());
$this->_synchronize($namespace, $folder_list, $annotations);
}