app/code/community/Nexcessnet/Turpentine/Model/Observer/Ban.php
public function banCacheType($eventObject) {
        switch ($eventObject->getType()) {
            //note this is the name of the container xml tag in config.xml,
            // **NOT** the cache tag name
            case Mage::helper('turpentine/esi')->getMageCacheName():
                if (Mage::helper('turpentine/esi')->getEsiEnabled()) {
                    $result = $this->_getVarnishAdmin()->flushUrl(
                        '/turpentine/esi/getBlock/' );
                    Mage::dispatchEvent('turpentine_ban_esi_cache', $result);
                    $this->_checkResult($result);
                }
                break;
            case Mage::helper('turpentine/varnish')->getMageCacheName():
                $this->banAllCache($eventObject);
                break;
        }
    }
public function banCacheType($eventObject) {
        switch ($eventObject->getType()) {
            //note this is the name of the container xml tag in config.xml,
            // **NOT** the cache tag name
            case Mage::helper('turpentine/esi')->getMageCacheName():
                if (Mage::helper('turpentine/esi')->getEsiEnabled()) {
                    $result = $this->_getVarnishAdmin()->flushUrl(
                        '/turpentine/esi/getBlock/' );
                    Mage::dispatchEvent('turpentine_ban_esi_cache', $result);
                    $this->_checkResult($result);
                }
                break;
            case Mage::helper('turpentine/varnish')->getMageCacheName():
                $this->banAllCache($eventObject);
                break;
        }
    }
public function banCacheType ( $ eventObject ) { switch ( $ eventObject -> getType ( ) ) { //note this is the name of the container xml tag in config.xml, // **NOT** the cache tag name case Mage :: helper ( 'turpentine/esi' ) -> getMageCacheName ( ) : if ( Mage :: helper ( 'turpentine/esi' ) -> getEsiEnabled ( ) ) { $ result = $ this -> _getVarnishAdmin ( ) -> flushUrl ( '/turpentine/esi/getBlock/' ) ; Mage :: dispatchEvent ( 'turpentine_ban_esi_cache' , $ result ) ; $ this -> _checkResult ( $ result ) ; } break ; case Mage :: helper ( 'turpentine/varnish' ) -> getMageCacheName ( ) : $ this -> banAllCache ( $ eventObject ) ; break ; } }
Do a flush on the ESI blocks

Events:
adminhtml_cache_refresh_type

@param  Varien_Object $eventObject
@return null
Do a flush on the ESI blocks