Skip to content

Commit

Permalink
Fix PageCache: async rendering of blocks can corrupt layout cache #8554
Browse files Browse the repository at this point in the history
  • Loading branch information
adrian-martinez-interactiv4 committed May 9, 2017
1 parent 3bdfa1b commit 5a6a000
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/code/Magento/PageCache/Controller/Block.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ protected function _getBlocks()
$blocks = $this->jsonSerializer->unserialize($blocks);
$handles = $this->base64jsonSerializer->unserialize($handles);

$handles[] = $this->additionalPageCacheHandle;
if(is_array($handles)){
$handles[] = $this->additionalPageCacheHandle;
}

$this->_view->loadLayout($handles, true, true, false);
$data = [];
Expand Down

0 comments on commit 5a6a000

Please sign in to comment.