*/ class Mage_PageCache_Block_Adminhtml_Cache_Additional extends Mage_Adminhtml_Block_Template { /** * Get clean cache url * * @return string */ public function getCleanExternalCacheUrl() { return $this->getUrl('*/pageCache/clean'); } /** * Check if block can be displayed * * @return bool */ public function canShowButton() { return Mage::helper('pagecache')->isEnabled() && Mage::getSingleton('admin/session')->isAllowed('page_cache'); } }