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