app/code/community/Nexcessnet/Turpentine/controllers/Varnish/ManagementController.php
public function applyConfigAction() {
        Mage::dispatchEvent('turpentine_varnish_apply_config');
        $helper = Mage::helper('turpentine');
        $result = Mage::getModel('turpentine/varnish_admin')->applyConfig($helper
            ->shouldStripVclWhitespace('apply')
        );
        foreach ($result as $name => $value) {
            if ($value === true) {
                $this->_getSession()
                    ->addSuccess($helper
                        ->__('VCL successfully applied to '.$name));
            } else {
                $this->_getSession()
                    ->addError($helper
                        ->__(sprintf('Failed to apply the VCL to %s: %s',
                            $name, $value)));
            }
        }
        $this->_redirect('*/cache');
    }
public function applyConfigAction() {
        Mage::dispatchEvent('turpentine_varnish_apply_config');
        $helper = Mage::helper('turpentine');
        $result = Mage::getModel('turpentine/varnish_admin')->applyConfig($helper
            ->shouldStripVclWhitespace('apply')
        );
        foreach ($result as $name => $value) {
            if ($value === true) {
                $this->_getSession()
                    ->addSuccess($helper
                        ->__('VCL successfully applied to '.$name));
            } else {
                $this->_getSession()
                    ->addError($helper
                        ->__(sprintf('Failed to apply the VCL to %s: %s',
                            $name, $value)));
            }
        }
        $this->_redirect('*/cache');
    }
public function applyConfigAction ( ) { Mage :: dispatchEvent ( 'turpentine_varnish_apply_config' ) ; $ helper = Mage :: helper ( 'turpentine' ) ; $ result = Mage :: getModel ( 'turpentine/varnish_admin' ) -> applyConfig ( $ helper -> shouldStripVclWhitespace ( 'apply' ) ) ; foreach ( $ result as $ name => $ value ) { if ( $ value === true ) { $ this -> _getSession ( ) -> addSuccess ( $ helper -> __ ( 'VCL successfully applied to ' . $ name ) ) ; } else { $ this -> _getSession ( ) -> addError ( $ helper -> __ ( sprintf ( 'Failed to apply the VCL to %s: %s' , $ name , $ value ) ) ) ; } } $ this -> _redirect ( '*/cache' ) ; }
Load the current VCL in varnish and activate it

@return null
Load the current VCL in varnish and activate it