app/code/community/Nexcessnet/Turpentine/Model/Observer/Ban.php
public function banCategoryCache($eventObject) {
        if (Mage::helper('turpentine/varnish')->getVarnishEnabled()) {
            $category = $eventObject->getCategory();
            $result = $this->_getVarnishAdmin()->flushUrl($category->getUrlKey());
            Mage::dispatchEvent('turpentine_ban_category_cache', $result);
            $cronHelper = Mage::helper('turpentine/cron');
            if ($this->_checkResult($result) &&
                    $cronHelper->getCrawlerEnabled()) {
                $cronHelper->addCategoryToCrawlerQueue($category);
            }
        }
    }
public function banCategoryCache($eventObject) {
        if (Mage::helper('turpentine/varnish')->getVarnishEnabled()) {
            $category = $eventObject->getCategory();
            $result = $this->_getVarnishAdmin()->flushUrl($category->getUrlKey());
            Mage::dispatchEvent('turpentine_ban_category_cache', $result);
            $cronHelper = Mage::helper('turpentine/cron');
            if ($this->_checkResult($result) &&
                    $cronHelper->getCrawlerEnabled()) {
                $cronHelper->addCategoryToCrawlerQueue($category);
            }
        }
    }
public function banCategoryCache ( $ eventObject ) { if ( Mage :: helper ( 'turpentine/varnish' ) -> getVarnishEnabled ( ) ) { $ category = $ eventObject -> getCategory ( ) ; $ result = $ this -> _getVarnishAdmin ( ) -> flushUrl ( $ category -> getUrlKey ( ) ) ; Mage :: dispatchEvent ( 'turpentine_ban_category_cache' , $ result ) ; $ cronHelper = Mage :: helper ( 'turpentine/cron' ) ; if ( $ this -> _checkResult ( $ result ) && $ cronHelper -> getCrawlerEnabled ( ) ) { $ cronHelper -> addCategoryToCrawlerQueue ( $ category ) ; } } }
Ban a category page, and any subpages on save

Events:
catalog_category_save_commit_after

@param  Varien_Object $eventObject
@return null
Ban a category page and any subpages on save