{"id":784,"date":"2020-01-26T10:34:11","date_gmt":"2020-01-26T10:34:11","guid":{"rendered":"https:\/\/meetanshi.com\/blog\/2020\/01\/26\/disable-magento-2-profiler\/"},"modified":"2025-05-22T15:06:22","modified_gmt":"2025-05-22T09:36:22","slug":"disable-magento-2-profiler","status":"publish","type":"post","link":"https:\/\/meetanshi.com\/blog\/disable-magento-2-profiler\/","title":{"rendered":"How To Disable Magento 2 Profiler"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">I earlier posted the method to <a href=\"https:\/\/meetanshi.com\/blog\/enable-magento-2-profiler\/\" target=\"_blank\" rel=\"noreferrer noopener\">enable Magento 2 profiler<\/a> to analyze the performance problems on the server-side.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">However, once the speed check is done, one needs to <strong>disable Magento 2 profiler<\/strong> so that the frontend users are not bothered.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Else, the user experience is hindered which is not acceptable.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The below solution shows how to disable profiler in Magento 2 after the speed check is done.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Method to Disable Magento 2 Profiler:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Run the below CLI command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php bin\/magento dev:profiler:disable &lt;type&gt;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Here, &lt;type&gt; can be either &#8220;html&#8221;, &#8220;cscfile&#8221;, or &#8220;flagfile&#8221;.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If it is \u201cflagfile\u201d, a flagfile named as profiler.flag will be created inside <em>var\/<\/em>directory.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Once done, the profiler is disabled in Magento 2 and the store is now ready to host the visitors!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Do share the post with Magento peps via social media.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I earlier posted the method to enable Magento 2 profiler to analyze the performance problems on the server-side. However, once the speed check is done,&#8230;<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[34],"tags":[],"class_list":["post-784","post","type-post","status-publish","format-standard","hentry","category-magento"],"acf":[],"_links":{"self":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/784","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/comments?post=784"}],"version-history":[{"count":2,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/784\/revisions"}],"predecessor-version":[{"id":15117,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/784\/revisions\/15117"}],"wp:attachment":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/media?parent=784"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/categories?post=784"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/tags?post=784"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}