app/code/community/Nexcessnet/Turpentine/controllers/Varnish/ManagementController.php
public function flushPartialAction() {
        $postData = $this->getRequest()->getPost();
        if ( ! isset($postData['pattern'])) {
            $this->_getSession()->addError($this->__('Missing URL post data'));
        } else {
            $pattern = $postData['pattern'];
            Mage::dispatchEvent('turpentine_varnish_flush_partial',
                array('pattern' => $pattern));
            $result = Mage::getModel('turpentine/varnish_admin')
                ->flushUrl($pattern);
            foreach ($result as $name => $value) {
                if ($value === true) {
                    $this->_getSession()
                        ->addSuccess(Mage::helper('turpentine/data')
                            ->__('Flushed matching URLs for: ').$name);
                } else {
                    $this->_getSession()
                        ->addError(Mage::helper('turpentine/data')
                            ->__('Error flushing matching URLs on: ').$name);
                }
            }
        }
        $this->_redirect('*/cache');
    }
public function flushPartialAction() {
        $postData = $this->getRequest()->getPost();
        if ( ! isset($postData['pattern'])) {
            $this->_getSession()->addError($this->__('Missing URL post data'));
        } else {
            $pattern = $postData['pattern'];
            Mage::dispatchEvent('turpentine_varnish_flush_partial',
                array('pattern' => $pattern));
            $result = Mage::getModel('turpentine/varnish_admin')
                ->flushUrl($pattern);
            foreach ($result as $name => $value) {
                if ($value === true) {
                    $this->_getSession()
                        ->addSuccess(Mage::helper('turpentine/data')
                            ->__('Flushed matching URLs for: ').$name);
                } else {
                    $this->_getSession()
                        ->addError(Mage::helper('turpentine/data')
                            ->__('Error flushing matching URLs on: ').$name);
                }
            }
        }
        $this->_redirect('*/cache');
    }
public function flushPartialAction ( ) { $ postData = $ this -> getRequest ( ) -> getPost ( ) ; if ( ! isset ( $ postData [ 'pattern' ] ) ) { $ this -> _getSession ( ) -> addError ( $ this -> __ ( 'Missing URL post data' ) ) ; } else { $ pattern = $ postData [ 'pattern' ] ; Mage :: dispatchEvent ( 'turpentine_varnish_flush_partial' , array ( 'pattern' => $ pattern ) ) ; $ result = Mage :: getModel ( 'turpentine/varnish_admin' ) -> flushUrl ( $ pattern ) ; foreach ( $ result as $ name => $ value ) { if ( $ value === true ) { $ this -> _getSession ( ) -> addSuccess ( Mage :: helper ( 'turpentine/data' ) -> __ ( 'Flushed matching URLs for: ' ) . $ name ) ; } else { $ this -> _getSession ( ) -> addError ( Mage :: helper ( 'turpentine/data' ) -> __ ( 'Error flushing matching URLs on: ' ) . $ name ) ; } } } $ this -> _redirect ( '*/cache' ) ; }
Partial flush action, flushes Magento URLs matching "pattern" in POST
data

@return null
Partial flush action flushes Magento URLs matching pattern in POST data