
As a result, the store was working without any cache and so, quite slowly. It may sound funny, but many times we've been called when a developer did a particular job on a store, disabled the cache and forgot to enable it back at some point. Check that Full page cache is enabledįirst of all, please open your Magento admin panel, go to the System > Cache Management and check to see if the Full page cache is enabled. We will ask you to find such pages in your store and exam them individually using the following steps: 1. When they are located, it helps us to find the core source of the problem. When any customer tells us that he or she has a slow store, the first thing we do is look for slow pages.

There is a list of default pages which are cacheable:Īnd there is a list of pages defined as uncacheable: This means that every page with such a block inside needs to be generated from scratch by Magento with each request from a visitor. Moreover, some blocks may be defined as ‘uncacheable’.

Some pages are defined as ‘uncacheable’, meaning that Magento must generate these pages with every single request. Unfortunately, in many cases, this scenario is not possible: a store receives changes of products, categories, prices constantly, and Magento needs to clear outdated pages from the cache to display these changes correctly in the store frontend.Īdditionally, not all the pages can be added to the cache. Cacheable or UncacheableĪt first glance, we can see that the more pages there are inside the cache, the faster the store is. The cache system is extremely relevant and necessary, and Magento 2 speed optimization is a very important task. As you know, the speed influences the store's performance in Google search results and the conversion of store visitors into buyers. The correct work of the cache system directly affects the store speed. If a page is not in the cache - the response is slow. We can see that if a page is served from the cache, Magento sends a response very fast. The speed of such an operation is much lower.

If the requested page is not present in the cache storage yet, Magento will generate this page, add it to the cache storage, and return it to a customer. The speed of such an operation is very high. If the requested page is inside cache storage, it is quickly returned to the visitor. When your store visitor opens any page in the browser, his or her request goes to the Magento 2 cache system: Varnish cache is ultra-fast and recommended for any size store, but it requires additional steps to instal and configure. As storage, Magento by default uses File cache or Varnish cache. In Magento 2, a full-page cache module stores the entire HTML code of a generated page in the cache storage. How does Magento 2 Page Cache work?Īccording to Wikipedia, the cache is a component that stores data, so future requests for that data can be served faster. Let’s start with some basic info about the cache workflow and it will greatly help us later. That's why if you want to solve the problem and fix it, you first need to spot the root causes. In most cases, speed issues are related to the poor quality of some extensions or a custom code inside your store. It’s a very rare occasion that a Magento 2 is slow because of a weak server. ▸ 5 reasons to speed up your Magento 2 store ▸ How to Turbocharge Magento 2 Store with Google PageSpeed Module?

In this article, we've compiled a list of our experiences and shared a few hacks regarding fixing the Magento store cache system. They ask us to help them to solve the performance problem and speed up Magento 2 store. From time to time, we receive complaints from our customers for the slow speed of their Magento 2 stores.
