Skip to content

Commit 5280d8d

Browse files
committed
MAGETWO-32092: [GITHUB] HTML Profiler and pub/static Resources #850
- disabling profiler in static.php
1 parent 8ccdc20 commit 5280d8d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/internal/Magento/Framework/App/StaticResource.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ public function __construct(
9999
*/
100100
public function launch()
101101
{
102+
// disabling profiling when retrieving static resource
103+
\Magento\Framework\Profiler::reset();
102104
$appMode = $this->state->getMode();
103105
if ($appMode == \Magento\Framework\App\State::MODE_PRODUCTION) {
104106
$this->response->setHttpResponseCode(404);

0 commit comments

Comments
 (0)