cache

Very often the reason for the slow page loading is either a disabled cache or a cache generated every time a page is loaded. While you can enable the disabled cache notifications, it doesn't fix the issue ultimately.

You need a solution to keep your full page cache warm regardless of the circumstances. That's exactly what the Magento 2 Full Page Cache Warmer offers. It imitates user behaviour to make sure a "fresh" version of the page is always loaded from the cache. 

So, today, you'll learn how to set up the cache warmer in Magento. The process basically comes down to a few options since the rest of them are already filled out for you.

Step 1: Install and Enable the Extension

The first step to better cache management is the installation of the Page Cache Warmer. After that, you just need to enable it and review the default settings that are already set up.

For that navigate to Stores > Configuration > Magefan Extensions > Page Cache Warmer > General

Step 2: Create Warmup Combinations

Our Magento 2 Cache Warmer automatically ranks your pages based on the number of visits and warms them up first. However, you can also tweak those settings by creating Warmup Combinations.

cache warming combinations magento 

Simply select Customer Groups, Currencies and Store Views which cache should be warmed up for primarily.

Step 3: Exclude Pages From Cache Warming

In Warmup Exlude you specify the Pages and Pages Types which should be excluded from the cache warming.

exclude pages from cache warming in magento

Additionally, you can exclude User-Agents from cache warming.

exclude agents from cache warming in magento

Step 4: Configure Performance

To ensure the cache warming process doesn't overload your server, Medium - default mode is already selected for you. However, you can also choose other options like:

  • High - intensive warming
  • Low - soft warming
  • Custom - expert mode

cache warming performance presets

The latter allows you to customize the cache warming process entirely.

  • Specify the number of parallel requests to the server in the Threads Number field.
  • Set the Warmup Job Schedule.

magento cache warming performance intensity

  • Specify the Maximum Job Run Time and Delay Between Requests.
  • Define when to stop the cache warming to avoid the overload in the Stop Warming When System Load Is More Than field.

magento cache warmer cron settings

Step 5: Configure the Cache Flushing

The next, Cache Flushing section, allows you to have more control over the cache flushing: 

  • Choose if you want to Forbid Cache Flushing.
  • Enable the Cache Flushing Log to monitor when, why and by whom the cache is flushed in the Flushed Log (System > Page Cache Warmer).
  • List the PHP Classes to Exclude From Log.
  • Set the cache flushes Log Lifetime.

magento cache flushing

Step 6: Configure the Request Settings

If your server has restricted access or if you are in the testing stage, specify your HTTP Authentication data and SSL Certificate Verification.

request settings magento

Step 7: Enable the Debug Mode

cache warmer debug mode

Step 8: Monitor Full Page Cache Warmer Reports

Once you Save the settings check how the cache warming performs in System > Page Cache Warmer > Pages. View all cached and non-cached pages, track cache coverage, monitor cache history and more.

full page cache warmer report magento

Be sure the Magento 2 Cache Warmer always delivers the latest version of the page to customers, faster. It works on autopilot with zero effort and zero maintenance required from you.

However, you should note that cache warming won't fix all of the speed-related issues on your store. Learn about more ways to speed up Magento to ensure best experience in your store.