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();
    }
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();
    }
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 ( ) ; }
Flushes cache
Flushes cache