In the following review we describe one very important Magento 2 performance improvement. If you are not new to the platform, you might be familiar with Magento full page cache warmer extensions that improve the productivity of the FPC module. As for Magento 2, the highly effective cache type is available here by default, but there is still a problem with its usage. Cached pages may be deleted manually or after a certain period of time. As a result, the full page cache module doesn’t work as it should. To always keep the cache version up to date, we recommend you to install Magento 2 full page cache crawler warmer by Amasty. This tool will help you monitor cache statuses warming up cache every time the procedure is required. As a result, your Magento 2 ecommerce website will provide visitors with much faster load speed.
- Magento cache warmer to warm important pages.
- Fully automated warming.
- Fully automated cache updates after changes are applied.
- List of pages excluded from warming.
- Performance reports.
- Lor with warmer-related data.
The core principle behind the Amasty Full Page Cache Warmer Magento 2 extension is based on the ability to monitor store pages and add them to the cache warming queue if necessary. The process is fully automated, so you can save tons of time and effort by installing the module. When the queue is generated, the Magento 2 cache warmer process it using cron: all the pages are generated on the basis of multiple parameters (you get lots of combinations) and then the extension caches them.
As a Magento 2 administrator, you can easily start Magento full page cache auto generation creating a cache warming queue in a few clicks. Multiple parameters can be applied to create different conditions. And there is an opportunity to select several queue generation sources, such as your XML sitemap, specific page types, or a txt file. Note that in case of the XML sitemap, you can specify page priority. As for a txt file, each link must be specified in a new line.
The Amasty Full Page Cache Warmer Magento 2 module allows to prioritize pages for warming. The extension allows to configure 4 page types for warming: homepage, product pages, category pages, and CMS pages. Hance, you can easily set up processing priority according to your ecommerce requirements. Also note that some pages may be excluded from warming. We describe this feature in more details below.
To configure warming even more, the Amasty Full Page Cache Warmer Magento 2 extension allows to create a schedule for the cache warming queue generation. As a result, you can run cron every X hours. Furthermore, it is possible to specify the frequency of page processing. And you can set a limit on a maximum amount of pages used in the queue. It is also necessary to mention that the Magento 2 warmer extension processes page URLs in batches. As a store administrator, you can easily set a limit on the amount of URLs in a batch.
To apply more precise configuration, save time, and get precise data, the Amasty Full Page Cache Warmer Magento 2 module offers some advanced settings. First of all, you can specify pages to be warmed on the basis of customer group, currency, and store view. Note that all URLs of newly created or updated pages are automatically added to the warmer queue. Besides, you can view two report types: Status codes and Warmed pages. Alternatively, it is possible to view a detailed cache warming log. The appropriate grid illustrates such information as date, currency, store view, customer group, etc.
As for the debug mode, it provides the Status & Hints option. Note that the option works only on the staging environment with native Magento cache. As for the normal mode, the Magento 2 FPC warmer extension supports both Magento 2 Varnish Cache and default File Cache.
We’d like to start our backend exploration of this Magento 2 warmer extension form the configuration section that is available under Stores -> Settings -> Configuration -> Amasty Extensions -> Full Page Cache Warmer. 5 blocks with settings are available here: General, Warmer, Page combinations, Connection settings, and Debug. Let’s describe each one in more details.
In General settings, you can enable/disable the Amasty Full Page Cache Warmer Magento 2 extension as well as turn on the “Auto-update cache upon the product changes” feature which adds product pages urls to the Warmer Queue upon the product edit.
In Warmer settings, select query generation source. It may be either Page Types or Text file with one link per line. For Page types, you can select home, product, category, and CMS pages. For the text file, give the relative path to file on your server.
Next, create queue generation schedule: use the standard cron expression. for instance, 0 */4 * * will run cron every four hours. Then, set the maximum number of pages in the Warmer Queue as well as the amount of page URLs that will be processed at a single cron run. You can also use the cron expression to schedule warmer jobs. For instance, */8 * * * * will run cron every eight minutes.
Besides, you can create a custom delay (in milliseconds) between requests to keep the server load safe. It is also possible to set the maximum number of lines in the log table and specify pages to be excluded.
In Page combinations, you can activate cache warming for pages that satisfy certain requirements. There are three filters to be activated: customer groups, currencies, and stores. For each filter, you can select one or several parameters.
In Connection Settings, enable/disable HTTP authentication and specify its parameters. The option must be activated when the website is protected with .htaccess. Next, you can enable certificate verification. This feature must be turned on only if FPC warmer doesn’t work for HTTPS.
The Debug block allows to enable showing cache status. Alternatively, it is possible to specify IP addresses to show cache statuses for.
Next, go to System -> Amasty FPC Warmer -> Warmer Queue. As mentioned above, all pages in the queue are placed here automatically. Alternatively, you can manually generate the queue at any time and trigger URLs processing. Just hit the appropriate button above the grid. As for the queue grid, it displays URLs and their rate.
Under System -> Amasty FPC Warmer -> Warmer Log, you can find the log grid that shows already warmed URLs. It is possible to filter log data by any parameter you need. The grid itself contains the following columns:
- Date – time and date the URL was warmed;
- URL – the address of the warmed page;
- Store View – related store view;
- Currency – related currency;
- Customer Group – related customer group;
- Rate – each URL gets a rate;
- Status – Already cached or 200 OK;
- Time – time for caching.
Under System -> Amasty FPC Warmer -> Performance Reports, there are two tabs: Status Codes and Warmed Pages. The first one shows the amount of cached and warmed pages.
The second tab displays the quantity of warmed pages for each day of a certain time interval.
As you can see, the Amasty Full Page Cache Warmer Magento 2 module not only crawls and warms cache automatically, it is also allows to configure lots of various parameters to make the process more precise as well as provides data describing the performance of your Magento 2 storefront. For further information about this Magento 2 full page cache warmer, follow the link below the post. Besides, we recommend you to check our comparison of the extension with its closest competitor: Magento 2 FPC Warmers Comparison.