Skip to content

Commit ffed782

Browse files
committed
MAGETWO-34649: Private content handling doesn't work when HTML profiler and develop mode are on
- disable profiling when private content handling ajax call
1 parent 8498059 commit ffed782

File tree

1 file changed

+2
-1
lines changed
  • app/code/Magento/PageCache/Controller/Block

1 file changed

+2
-1
lines changed

app/code/Magento/PageCache/Controller/Block/Render.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ public function execute()
1919
$this->_forward('noroute');
2020
return;
2121
}
22-
22+
// disable profiling during private content handling AJAX call
23+
\Magento\Framework\Profiler::reset();
2324
$blocks = $this->_getBlocks();
2425
$data = [];
2526
foreach ($blocks as $blockName => $blockInstance) {

0 commit comments

Comments
 (0)