getCacheInstance()->getInvalidatedTypes(); $res = array(); foreach ($invalidatedTypes as $type) { $res[] = $type->getCacheType(); } return $res; } /** * Get index management url * * @return string */ public function getManageUrl() { return $this->getUrl('adminhtml/cache'); } /** * ACL validation before html generation * * @return string */ protected function _toHtml() { if (Mage::getSingleton('admin/session')->isAllowed('system/cache')) { return parent::_toHtml(); } return ''; } }