1st tip to speed up your Magento site: caching utilization
Being the owner of a Magento based website, you may already know that it contains in-built caching modules. On the other hand, we are here to improve what you have. So, there are third party solutions to help you. Before everything else, you need to make sure that all the existing cache types are enabled this way: ‘System’ – ‘Cache Management’. In case, they are, let’s move to browser caching.
Here is another step, which influences the speed of your Magento website. Below you can see the pieces of code. These are the snippets that you should add to your .htaccess file. As you may know, the Magento 2 ships with an .htaccess file named .htaccess.sample. Needless to say, you can use it for caching utilization. Keep in mind that you can use the snippets below for an older Magento version as well, the only thing is that you may need to add them manually.
To make the long story short, page caching has always been the most beneficial way to improve website speed. That is why these days you can see so many extensions that help to perform page caching. Even then, how can you do it by yourself?
Another important aspect that you should consider is paying attention to the expire headers. Why do we need them? Basically, these headers inform browsers when it should request a needed file from the server. They also work to tell the browser to take the files from cache. As a result, a visitor doesn’t need to wait until the website is loaded again. If a person has ever entered your site before, everything will appear from the cache rapidly. That is how you may speed up your Magento site by activating expire headers.
2nd tip to speed up your Magento site: Search Engines Optimization
The next step that will surely speed any Magento site is SEO. This clever system allows all the search engines to notice your online project. Unquestionably, it will result in followers result in audience growth and better traffic flow but how it improves your speed? The fact is that SEO mostly depends on the speed of your online project. It is important to have good website speed in order to get the best results through SEO. What should you do if you know nothing about coding?
These days the handy ready-made templates are really popular. Actually, pretty big players use them. Therefore, there is a rich variety of feature-rich templates including Magento themes. To say more, they come with multiple stylish and must-have features.
3rd tip to speed up your Magento site: AMP
To sum everything up, AMP is your modern way to get faster mobile pages. That is why we recommend you to use Accelerated Mobile Pages for your website no matter what it is about. Remember we have told you about the ready-to-use Magento themes? So, there are also AMP-ready templates. To illustrate, here is Fashion Slash. Just open the demo to see how all the elements work in action.
4th tip to speed up your Magento site: optimize your images
To start with, let’s take a closer look at these numerals. The thing is that today almost 60% of the website’s weight relates to images. Seeing that, you can be sure that image optimization will quickly speed up your Magento site. To make a long story short, it decreases download time of your pictures. How can you optimize your images? First of all, you can simply compress them with the help of PhotoShop. There are a lot of video tutorials you can see. Secondly, the internet is full of multiple extensions that can help you. They do everything automatically, which means that you do not need to have some special skills. Some of these extensions are:
- Compressor Extension
- TinyPNG Extensions
In addition, Magento 2 themes come with Image Optimizer that will help one to optimize their images without trouble.
5th tip to speed up your Magento site: useless extensions and modules
- To begin with, navigate to ‘Stores’;
- Secondly, to ‘Configuration’;
- Thirdly to ‘Advanced’;
- Next, find the modules you want to disable and select the needed function;
- Finally, don’t forget to save configurations.
See the screenshot below!
6th tip to speed up your Magento site: use PHP accelerators
What else should you know to speed up your Magento site? There are only two words: PHP accelerator. To make a long story short, this is a clever form of caching. Basically, PHP accelerators were made to increase the performance of your PHP scripts. Without a doubt, it will make your website work faster because PHP accelerator simply caches your scripts in their compiled state. Here are some popular PHP accelerators you may use.
7th tip to speed up your Magento site: just enable Magento compilation
If you are a happy owner of Magento 2 website, you probably know what compilation is. The thing is that this feature makes your online project load nearly 50% faster. Sounds great, doesn’t it? In a word, every single time your pages load Magento’s application files are searched in a particular order. As a result, you have multiple filesystem reads. For these simple reasons, compiler copies all such files into a new directory to reduce the reads. What is more, the most popular files also go to cache. Obviously, the process will speed up your website. Seeing that, are you ready to enable Magento compilation? Just follow the next steps.
- Firstly, go to ‘System’ as always;
- Secondly, go to ‘Tools’;
- Thirdly, find there ‘Compilation’;
- Fourthly, select ‘Run Compilation Process’
8th tip to speed up your Magento site: don’t forget to clean up your logs and database
Another thing that always works is cleaning. Normally, Magento keeps all the logs up to 180 days. Yep, that is cool because you can get the lost information easily. On the other hand, a huge amount of site’s logs will make your database growing with a lightning-fast speed. And we want it for your site, not for database, right? Therefore, we suggest you change the terms of logs keeping. For example, you can change it to a couple of weeks or something like this. All in all, this action will save your space and will speed up your Magento site at the same time. So, your actions will be:
- Go to ‘Stores’ – ‘Configuration’ – ‘Advanced’;
- Then navigate to ‘System’;
- Find there ‘Log’;
- There will be the field ‘Save Log, Days’ where you should change the default information to the needed amount;
- As soon as you did, just save configurations.
- Traditionally, go to ‘System’;
- Then navigate to ‘Advanced’ and ‘Developer’;
- To finish with, just click on ‘Yes’ and save everything.
- Finally, clear your cache when the files are combined. Now you know how to do it.
By the way, Magento 2 additionally allows you to concatenate JS and CSS. What is more, you can also minify your JS and CSS. The good thing is that you don’t need to have any additional extensions for it. Magento 2 lets its owner perform all the actions using only dashboard.
10th tip to speed up your Magento site: enable flat catalog
As you may know, Magento works with entity attribute value model. It allows storing customer and product data. Thus, we recommend you to enable flat catalog, which comes for products and categories. With it, you will merge product data into one table, which can make MySQL responds faster. As a result, you will speed up your Magento 2 without a hitch. In the end, the more products you have, the more benefits you will get. Would you like to speed up your site?
- So, to enable flat catalog you need to navigate to ‘Stores’;
- As soon as you did, go to ‘Configuration’ and ‘Catalog’;
- Find there ‘Use Flat Catalog Category’ and ‘Use Flat Catalog Product’ fields;
- Select ‘Yes’ under ‘Storefront’.
- Now you can save configurations and clear the cache.
To end with, we suggest you delete all the files from /var/cache directory.
So, these were all the tips we have for you today. Let’s sum everything up! Without a doubt, there are a lot of things that can help one to speed up their Magento site. Still, you have to start with a great hosting. All in all, multiple website owners prefer to pay for the trendy features and forget about the quality. Therefore, before all else find a worthy hosting provider like MilesWeb. Then just use the tips we gave you and soon your Magento website will show a lightning-fast speed.