app/code/community/Nexcessnet/Turpentine/Model/Observer/Ban.php
public function banProductPageCache($eventObject) {
        if (Mage::helper('turpentine/varnish')->getVarnishEnabled()) {
            $banHelper = Mage::helper('turpentine/ban');
            $product = $eventObject->getProduct();
            $urlPattern = $banHelper->getProductBanRegex($product);
            $result = $this->_getVarnishAdmin()->flushUrl($urlPattern);
            Mage::dispatchEvent('turpentine_ban_product_cache', $result);
            $cronHelper = Mage::helper('turpentine/cron');
            if ($this->_checkResult($result) &&
                    $cronHelper->getCrawlerEnabled()) {
                $cronHelper->addProductToCrawlerQueue($product);
                foreach ($banHelper->getParentProducts($product)
                        as $parentProduct) {
                    $cronHelper->addProductToCrawlerQueue($parentProduct);
                }
            }
        }
    }
public function banProductPageCache($eventObject) {
        if (Mage::helper('turpentine/varnish')->getVarnishEnabled()) {
            $banHelper = Mage::helper('turpentine/ban');
            $product = $eventObject->getProduct();
            $urlPattern = $banHelper->getProductBanRegex($product);
            $result = $this->_getVarnishAdmin()->flushUrl($urlPattern);
            Mage::dispatchEvent('turpentine_ban_product_cache', $result);
            $cronHelper = Mage::helper('turpentine/cron');
            if ($this->_checkResult($result) &&
                    $cronHelper->getCrawlerEnabled()) {
                $cronHelper->addProductToCrawlerQueue($product);
                foreach ($banHelper->getParentProducts($product)
                        as $parentProduct) {
                    $cronHelper->addProductToCrawlerQueue($parentProduct);
                }
            }
        }
    }
public function banProductPageCache ( $ eventObject ) { if ( Mage :: helper ( 'turpentine/varnish' ) -> getVarnishEnabled ( ) ) { $ banHelper = Mage :: helper ( 'turpentine/ban' ) ; $ product = $ eventObject -> getProduct ( ) ; $ urlPattern = $ banHelper -> getProductBanRegex ( $ product ) ; $ result = $ this -> _getVarnishAdmin ( ) -> flushUrl ( $ urlPattern ) ; Mage :: dispatchEvent ( 'turpentine_ban_product_cache' , $ result ) ; $ cronHelper = Mage :: helper ( 'turpentine/cron' ) ; if ( $ this -> _checkResult ( $ result ) && $ cronHelper -> getCrawlerEnabled ( ) ) { $ cronHelper -> addProductToCrawlerQueue ( $ product ) ; foreach ( $ banHelper -> getParentProducts ( $ product ) as $ parentProduct ) { $ cronHelper -> addProductToCrawlerQueue ( $ parentProduct ) ; } } } }
Ban a specific product page from the cache

Events:
catalog_product_save_commit_after

@param  Varien_Object $eventObject
@return null
Ban a specific product page from the cache