app/code/community/Nexcessnet/Turpentine/Model/Observer/Esi.php
public function checkCacheFlag($eventObject) {
        if (Mage::helper('turpentine/varnish')->shouldResponseUseVarnish()) {
            $layoutXml = $eventObject->getLayout()->getUpdate()->asSimplexml();
            foreach ($layoutXml->xpath('//turpentine_cache_flag') as $node) {
                foreach ($node->attributes() as $attr => $value) {
                    if ($attr == 'value') {
                        if ( ! (string) $value) {
                            Mage::register('turpentine_nocache_flag', true, true);
                            return; //only need to set the flag once
                        }
                    }
                }
            }
        }
    }
public function checkCacheFlag($eventObject) {
        if (Mage::helper('turpentine/varnish')->shouldResponseUseVarnish()) {
            $layoutXml = $eventObject->getLayout()->getUpdate()->asSimplexml();
            foreach ($layoutXml->xpath('//turpentine_cache_flag') as $node) {
                foreach ($node->attributes() as $attr => $value) {
                    if ($attr == 'value') {
                        if ( ! (string) $value) {
                            Mage::register('turpentine_nocache_flag', true, true);
                            return; //only need to set the flag once
                        }
                    }
                }
            }
        }
    }
public function checkCacheFlag ( $ eventObject ) { if ( Mage :: helper ( 'turpentine/varnish' ) -> shouldResponseUseVarnish ( ) ) { $ layoutXml = $ eventObject -> getLayout ( ) -> getUpdate ( ) -> asSimplexml ( ) ; foreach ( $ layoutXml -> xpath ( '//turpentine_cache_flag' ) as $ node ) { foreach ( $ node -> attributes ( ) as $ attr => $ value ) { if ( $ attr == 'value' ) { if ( ! ( string ) $ value ) { Mage :: register ( 'turpentine_nocache_flag' , true , true ) ; return ; //only need to set the flag once } } } } } }
Allows disabling page-caching by setting the cache flag on a controller

<customer_account>
<turpentine_cache_flag value="0" />
</customer_account>

Events: controller_action_layout_generate_blocks_after

@param  Varien_Object $eventObject
@return null
Allows disabling page - caching by setting the cache flag on a controller