public function save() { parent::save(); if (!CTaxonomyManager::getCacheTaxonomy()->hasElement($this->getId())) { CTaxonomyManager::getCacheTaxonomy()->add($this->getId(), $this); CTaxonomyManager::getCacheTaxonomy()->add($this->getAlias(), $this); } }