code: public function flushCacheAction()
      {
          try {
              $this->getService()->flushCache();
              $this->getSession()->addSuccess('Cache flushed.');
          } catch (Exception $e) {
              $message = $this->__('Cache cannot be flushed: %s', $e->getMessage());
              $this->getSession()->addError($message);
          }
  
          $this->_redirectReferer();
      }
docs: Flushes cache