File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
app/code/Magento/PageCache/Controller/Block
lib/internal/Magento/Framework/App Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,8 @@ public function execute()
19
19
$ this ->_forward ('noroute ' );
20
20
return ;
21
21
}
22
-
22
+ // disable profiling during private content handling AJAX call
23
+ \Magento \Framework \Profiler::reset ();
23
24
$ blocks = $ this ->_getBlocks ();
24
25
$ data = [];
25
26
foreach ($ blocks as $ blockName => $ blockInstance ) {
Original file line number Diff line number Diff line change @@ -99,6 +99,8 @@ public function __construct(
99
99
*/
100
100
public function launch ()
101
101
{
102
+ // disabling profiling when retrieving static resource
103
+ \Magento \Framework \Profiler::reset ();
102
104
$ appMode = $ this ->state ->getMode ();
103
105
if ($ appMode == \Magento \Framework \App \State::MODE_PRODUCTION ) {
104
106
$ this ->response ->setHttpResponseCode (404 );
You can’t perform that action at this time.
0 commit comments