/** * Get cache parameters * * @return array */ protected function getCacheParameters() { $params = parent::getCacheParameters(); $key = array(); /** @var \XLite\View\Menu\Admin\LeftMenu\ANodeNotification $item */ foreach ($this->getItems() as $item) { $key[] = $item->getCacheParameters(); } $params[] = md5(serialize($key)); return $params; }