Skip to content

Commit

Permalink
Merge pull request #970 from aricwatson/devel
Browse files Browse the repository at this point in the history
Add Disable ESI Injection config option
  • Loading branch information
aricwatson committed Oct 1, 2015
2 parents 835c671 + 5d6190c commit 76236b2
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,11 @@ public function injectEsi( $eventObject ) {
if( $esiHelper->shouldResponseUseEsi() &&
$blockObject instanceof Mage_Core_Block_Template &&
$esiOptions = $blockObject->getEsiOptions() ) {

if ((isset($esiOptions['disableEsiInjection'])) && ($esiOptions['disableEsiInjection'] == 1)) {
return;
}

if( Mage::app()->getStore()->getCode() == 'admin' ) {
// admin blocks are not allowed to be cached for now
$debugHelper->logWarn(
Expand Down

0 comments on commit 76236b2

Please sign in to comment.