{"id":46261,"date":"2015-04-08T03:14:44","date_gmt":"2015-04-08T07:14:44","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=46261"},"modified":"2017-08-24T06:01:40","modified_gmt":"2017-08-24T10:01:40","slug":"magento-how-to-optimize-speed-up-a-website","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/magento-how-to-optimize-speed-up-a-website.html","title":{"rendered":"What are the good ways to improve Magento performance?"},"content":{"rendered":"<p>The following tutorial will show you how to optimize your Magento site performance. <\/p>\r\n\r\n<h3 class=\"custom\"> Magento Compiler<\/h3>\r\n<p class=\"attention\">NOTE: Magento Compiler is a module that comes prepackaged with Magento. It compiles PHP files that are located in many different directories into a single folder (e.g. public_html\/includes\/src), and thus the files are executed faster since they are located in one place and there is no need for searching through the various directories.<\/p>\r\n<ol>\r\n\t<li>\r\n\t\t<p> To activate the Compiler, log into your Magento admin panel. <\/p>\r\n\t<\/li>\r\n\t<li>\r\n\t\t<p> Navigate to the <strong>System -> Tools -> Compilation<\/strong>. <\/p>\r\n\t<\/li>\r\n\t<li>\r\n\t\t<p> Click on the <strong> Run Compilation Process <\/strong> button:<\/p>\r\n\t\t<p><a class=\"darkbox\" href=\"\/help\/wp-content\/uploads\/2015\/04\/magento_how_to_optimize_site_1.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/help\/wp-content\/uploads\/2015\/04\/magento_how_to_optimize_site_1-300x169.jpg\" alt=\"magento_how_to_optimize_site_1\" width=\"300\" height=\"169\" class=\"alignnone size-medium wp-image-71747\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/magento_how_to_optimize_site_1-300x169.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/magento_how_to_optimize_site_1-150x84.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/magento_how_to_optimize_site_1.jpg 1000w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n\t<\/li>\r\n\t<li>\r\n\t\t<p> If you want to upgrade your store or meet some issues after enabling Compiler, press the <strong>Disable<\/strong> button that appears in the upper right corner after you run the compilation process.<\/p>\r\n\t<\/li>\r\n<\/ol>\r\n<h3 class=\"custom\"> Merge CSS and JavaScript Files<\/h3>\r\n<p class=\"info-box\">NOTE: By merging the CSS (Cascading Style Sheets) and JavaScript files you reduce the number of HTTP (HyperText Transfer Protocol) requests. The fewer requests you have, the faster the page will load.<\/p>\r\n<ol>\r\n\t<li>\r\n\t\t<p> Navigate to <strong>System -> Configuration -> Advanced -> Developer<\/strong>:<\/p>\r\n\t\t<p><a class=\"darkbox\" href=\"\/help\/wp-content\/uploads\/2015\/04\/magento_how_to_optimize_site_2.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/help\/wp-content\/uploads\/2015\/04\/magento_how_to_optimize_site_2-300x169.jpg\" alt=\"magento_how_to_optimize_site_2\" width=\"300\" height=\"169\" class=\"alignnone size-medium wp-image-71749\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/magento_how_to_optimize_site_2-300x169.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/magento_how_to_optimize_site_2-150x84.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/magento_how_to_optimize_site_2.jpg 1000w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n\t<\/li>\r\n\t<li>\r\n\t\t<p> Click <strong>JavaScript Settings<\/strong> panel to open it. <\/p>\r\n\t<\/li>\r\n\t<li>\r\n\t\t<p> Set the drop-down menu <strong>Merge JavaScript Files<\/strong> to <strong>Yes<\/strong>. <\/p>\r\n\t<\/li>\r\n\t<li>\r\n\t\t<p> Click <strong>CSS Settings<\/strong> panel to open it. <\/p>\r\n\t<\/li>\r\n\t<li>\r\n\t\t<p> Set <strong>Merge CSS Files<\/strong> dropdown to <strong>Yes<\/strong>: <\/p>\r\n\t\t<p><a class=\"darkbox\" href=\"\/help\/wp-content\/uploads\/2015\/04\/magento_how_to_optimize_site_3.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/help\/wp-content\/uploads\/2015\/04\/magento_how_to_optimize_site_3-300x124.jpg\" alt=\"magento_how_to_optimize_site_3\" width=\"300\" height=\"124\" class=\"alignnone size-medium wp-image-71750\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/magento_how_to_optimize_site_3-300x124.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/magento_how_to_optimize_site_3-150x62.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/magento_how_to_optimize_site_3.jpg 948w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n\t<\/li>\r\n\t<li>\r\n\t\t<p> Click on the <strong>Save Config<\/strong> button to save changes.<\/p>\r\n\t<\/li>\r\n<\/ol>\r\n<h3 class=\"custom\">Optimize Database<\/h3>\r\n<ol>\r\n\t<li>\r\n\t\t<p> Open the <strong>phpMyAdmin<\/strong> tool (you can find it in your hosting control panel). <\/p>\r\n\t<\/li>\r\n\t<li>\r\n\t\t<p> Once in phpMyAdmin, in the left frame click on the name of the database used by Magento to view its tables.<\/p>\r\n\t<\/li>\r\n\t<li>\r\n\t\t<p> Click the <strong>Check All<\/strong> link at the bottom of the page to mark all the database tables.<\/p>\r\n\t<\/li>\r\n\t<li>\r\n\t\t<p> Choose an <strong>Optimize<\/strong> table using the <strong>With selected<\/strong> drop-down menu:<\/p>\r\n\t\t<p><a class=\"darkbox\" href=\"\/help\/wp-content\/uploads\/2015\/04\/magento_how_to_optimize_site_4.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/help\/wp-content\/uploads\/2015\/04\/magento_how_to_optimize_site_4-300x169.jpg\" alt=\"magento_how_to_optimize_site_4\" width=\"300\" height=\"169\" class=\"alignnone size-medium wp-image-71751\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/magento_how_to_optimize_site_4-300x169.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/magento_how_to_optimize_site_4-150x84.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/magento_how_to_optimize_site_4.jpg 1000w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n\t<\/li>\r\n\t<li>\r\n\t\t<p> You can do this optimization regularly. From time to time you can also use the <strong>Repair table<\/strong> function, in case there are any damaged tables.<\/p>\r\n\t<\/li>\r\n<\/ol>\r\n\r\n\r\n<h3 class=\"custom\">Hosting settings<\/h3>\r\n<ol>\r\n\t<li>\r\n\t\t<p>Get a dedicated server or a VPS from a poster specialized in Magento.<\/p>\r\n\t<\/li>\r\n\t<li>\r\n\t\t<p>Your country or continent hosting is recommended. For worldwide customers use a CDN (Content Delivery Network).<\/p>\r\n\t<\/li>\r\n\t<li>\r\n\t\t<p>Remove the files you do not use from the server.<\/p>\r\n\t<\/li>\r\n\t<li>\r\n\t\t<p>Only the necessary database modules should be installed.\t<\/p>\r\n\t<\/li>\r\n\t<li>\r\n\t\t<p>Swap Apache for NginX or Litespeed.<\/p>\r\n\t<\/li>\r\n\t<li>\r\n\t\t<p>Don&#8217;t use too many different external sources (for images, iframes, (twitter\/facebook) feeds etc.) because every DNS lookup takes extra time and you create an extra dependency (on some 3rd party server) for your site to load properly.<\/p>\r\n\t<\/li>\r\n\t<li>\r\n\t\t<p>Minimize redirects.\r\n\t\t<\/p>\r\n\t<\/li>\r\n\t<li>\r\n\t\t<p>Turn off or at least reduce the web server logging.\r\n\t\t<\/p>\r\n\t<\/li>\r\n\t<li>\r\n\t\t<p>Set &#8216;php_value memory_limit 512M&#8217; in your php configuration or add it to your .htaccess file to ensure you don&#8217;t run out of memory.\r\n\t\t<\/p>\r\n\t<\/li>\r\n\t<li>\r\n\t\t<p>Install the Yireo DisableLog add-on. It prevents Magento writing tons of stuff to your database which is useless when you&#8217;re already using something like Google Analytics.\r\n\t\t<\/p>\r\n\t<\/li>\r\n\t\r\n<\/ol>\r\n\r\n<h3 class=\"custom\">Magento configuration<\/h3>\r\n<ol>\r\n\t<li>\r\n\t\t<p>Uninstall the extensions you do not use. This tutorial will help you with it: <a href=\"\/help\/magento-how-to-work-with-extensions.html\" target=\"_blank\">Magento. How to work with extensions<\/a><\/p>\r\n\t<\/li>\r\n\t<li>\r\n\t\t<p>Disable modules that you don&#8217;t use: <strong>System -> Configuration -> Advanced -> Advanced<\/strong>.\r\n\t\t<\/p>\r\n\t\t<p><a class=\"darkbox\" href=\"\/help\/wp-content\/uploads\/2015\/04\/magento_how_to_optimize_site_5.png\"><img loading=\"lazy\" decoding=\"async\" src=\"\/help\/wp-content\/uploads\/2015\/04\/magento_how_to_optimize_site_5-300x209.png\" alt=\"magento_how_to_optimize_site_5\" width=\"300\" height=\"209\" class=\"alignnone size-medium wp-image-71752\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/magento_how_to_optimize_site_5-300x209.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/magento_how_to_optimize_site_5-150x105.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/magento_how_to_optimize_site_5.png 617w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n\t<\/li>\r\n\t<li>\r\n\t\t<p>Enable all the Magento Caches in <strong>System -> Cache Management<\/strong>.\r\n\t\t<\/p>\r\n\t\t<p><a class=\"darkbox\" href=\"\/help\/wp-content\/uploads\/2015\/04\/magento_how_to_optimize_site_6.png\"><img loading=\"lazy\" decoding=\"async\" src=\"\/help\/wp-content\/uploads\/2015\/04\/magento_how_to_optimize_site_6-300x104.png\" alt=\"magento_how_to_optimize_site_6\" width=\"300\" height=\"104\" class=\"alignnone size-medium wp-image-71753\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/magento_how_to_optimize_site_6-300x104.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/magento_how_to_optimize_site_6-150x52.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/magento_how_to_optimize_site_6-1024x354.png 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/magento_how_to_optimize_site_6.png 1273w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n\t<\/li>\r\n\t<li>\r\n\t\t<p>Enable the Flat Catalog in <strong>System -> Configuration -> Catalog -> Frontend<\/strong> section by setting the <strong><i>Use Flat Catalog Category<\/i><\/strong> and <strong><i>Use Flat Catalog Product<\/i><\/strong> to <strong><i>Yes<\/i><\/strong>. Make sure to press the <strong>Save Config<\/strong>.\r\n\t\t<\/p>\r\n\t\t<p><a class=\"darkbox\" href=\"\/help\/wp-content\/uploads\/2015\/04\/magento_how_to_optimize_site_7.png\"><img loading=\"lazy\" decoding=\"async\" src=\"\/help\/wp-content\/uploads\/2015\/04\/magento_how_to_optimize_site_7-300x222.png\" alt=\"magento_how_to_optimize_site_7\" width=\"300\" height=\"222\" class=\"alignnone size-medium wp-image-71754\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/magento_how_to_optimize_site_7-300x222.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/magento_how_to_optimize_site_7-150x111.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/magento_how_to_optimize_site_7.png 987w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n\t<\/li>\r\n<\/ol>\r\n\r\n<div class=\"inline-banner\">\r\n<a href=\"https:\/\/www.templatemonster.com\/service-center\/\">\r\n<img decoding=\"async\" src=\"\/help\/files\/banners\/inline\/Banner-2-(835-x100).jpg\"\/>\r\n<\/a>\r\n<\/div>\r\n<p> That is the end of the tutorial. Now you know how to optimize your Magento store performance. <\/p>","protected":false},"excerpt":{"rendered":"<p>The following tutorial will show you how to optimize your Magento site performance.<\/p>\n","protected":false},"author":75,"featured_media":46268,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[729],"tags":[2407,839,531],"class_list":["post-46261","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-magento-tutorials","tag-magento","tag-optimize","tag-speed"],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/46261","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/75"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=46261"}],"version-history":[{"count":2,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/46261\/revisions"}],"predecessor-version":[{"id":82992,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/46261\/revisions\/82992"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/46268"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=46261"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=46261"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=46261"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}