app/code/community/Nexcessnet/Turpentine/controllers/Varnish/ManagementController.php
public function saveConfigAction() {
        $cfgr = Mage::getModel('turpentine/varnish_admin')->getConfigurator();
        if (is_null($cfgr)) {
            $this->_getSession()->addError(
                $this->__('Failed to load configurator') );
        } else {
            Mage::dispatchEvent('turpentine_varnish_save_config',
                array('cfgr' => $cfgr));
            $result = $cfgr->save($cfgr->generate(
                Mage::helper('turpentine')->shouldStripVclWhitespace('save') ));
            if ($result[0]) {
                $this->_getSession()
                    ->addSuccess(Mage::helper('turpentine')
                        ->__('The VCL file has been saved.'));
            } else {
                $this->_getSession()
                    ->addError(Mage::helper('turpentine')
                        ->__('Failed to save the VCL file: '.$result[1]['message']));
            }
        }
        $this->_redirect('*/cache');
    }
public function saveConfigAction() {
        $cfgr = Mage::getModel('turpentine/varnish_admin')->getConfigurator();
        if (is_null($cfgr)) {
            $this->_getSession()->addError(
                $this->__('Failed to load configurator') );
        } else {
            Mage::dispatchEvent('turpentine_varnish_save_config',
                array('cfgr' => $cfgr));
            $result = $cfgr->save($cfgr->generate(
                Mage::helper('turpentine')->shouldStripVclWhitespace('save') ));
            if ($result[0]) {
                $this->_getSession()
                    ->addSuccess(Mage::helper('turpentine')
                        ->__('The VCL file has been saved.'));
            } else {
                $this->_getSession()
                    ->addError(Mage::helper('turpentine')
                        ->__('Failed to save the VCL file: '.$result[1]['message']));
            }
        }
        $this->_redirect('*/cache');
    }
public function saveConfigAction ( ) { $ cfgr = Mage :: getModel ( 'turpentine/varnish_admin' ) -> getConfigurator ( ) ; if ( is_null ( $ cfgr ) ) { $ this -> _getSession ( ) -> addError ( $ this -> __ ( 'Failed to load configurator' ) ) ; } else { Mage :: dispatchEvent ( 'turpentine_varnish_save_config' , array ( 'cfgr' => $ cfgr ) ) ; $ result = $ cfgr -> save ( $ cfgr -> generate ( Mage :: helper ( 'turpentine' ) -> shouldStripVclWhitespace ( 'save' ) ) ) ; if ( $ result [ 0 ] ) { $ this -> _getSession ( ) -> addSuccess ( Mage :: helper ( 'turpentine' ) -> __ ( 'The VCL file has been saved.' ) ) ; } else { $ this -> _getSession ( ) -> addError ( Mage :: helper ( 'turpentine' ) -> __ ( 'Failed to save the VCL file: ' . $ result [ 1 ] [ 'message' ] ) ) ; } } $ this -> _redirect ( '*/cache' ) ; }
Save the config to the configured file action

@return null
Save the config to the configured file action