12 class Cache extends \Magento\Backend\Block\Widget\Grid\Container
21 $this->_controller =
'cache';
22 $this->_headerText =
__(
'Cache Storage Management');
24 $this->buttonList->remove(
'add');
26 if ($this->_authorization->isAllowed(
'Magento_Backend::flush_magento_cache')) {
27 $this->buttonList->add(
30 'label' =>
__(
'Flush Magento Cache'),
32 'class' => 'primary flush-cache-magento
' 37 if ($this->_authorization->isAllowed('Magento_Backend::flush_cache_storage
')) { 38 $message = __('The cache storage may contain additional data. Are you sure that you want to flush it?
'); 39 $this->buttonList->add( 42 'label
' => __('Flush
Cache Storage
'), 44 'class' => 'flush-cache-storage
' 55 public function getFlushStorageUrl() 57 return $this->getUrl('adminhtml