public function ancestorIds()
{
$owner = $this->getOwner();
$cache_id = $this->getCacheStub() . ':ancestorIds';
$ancestor_ids = Yii::app()->cache->get($cache_id);
if ($ancestor_ids === false) {
$ancestor_ids = $this->_ancestorIds($owner->getDbConnection(), $owner->treeTable(), $owner->id);
Yii::app()->cache->set($cache_id, $ancestor_ids);
}
return $ancestor_ids;
}