Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

...

Introduction

Cache Warmer for Magento 2 is made to ensure fast page loading speed and better shopping experience. Cache Warmer can be custom-scheduled to warm all the pages.

System Requirement: Magento 2.2.x, 2.3.x.

...

General Settings

...

(plus) On the admin sidebar, go to Stores > Configuration > Magenest > Cache Warmer.

Image Modified

(plus) Under General section

    • Enable

...

    • Extension

...

    • : Set the option to

...

    • Yes to activate the extension Cache Warmer. The option has a 'Global' scope so it is not possible to run the warmer on a certain web store/store view.
    • Auto-generate Queue upon Cache Flush

...

    • : Set the option to

...

    • Yes to automatically generate all the available full page cache pages in queue after cache flushing.
    • Auto-add Pages into Queue upon Page Changes

...

    • : This feature is to update the queue with Product, Category, Cms Page

...

    • URLs upon being updated. 
    • Instantly Hit Cache upon Page Changes

...

    • : Set the option to

...

    • Yes to automatically warm up all the available full page cache pages

...

    • that are relevant to the Product, Category or Cms Page being edited.
    • Additional Custom Urls to join the Queue

...

    • : This text field is to be filled with

...

    • URLs that might not be included in the page generating process.

...

    • URLs in the box are separated by a line break then they will appear at the end of the queue after page generation.


Performance Settings

...

(plus) To configure performance extension settings

...

, go to Stores

...

> Configuration

...

> Magenest

...

> Cache Warmer.

...

Image Removed

...

    • Max Requests in One Process

...

    • : The extension comes with the parallel process, thus it can be able to warm up multiple pages per one request. This field determines how many threads you would like to use to perform page warm up.
    • Enabled schedule tasks

...

    • : Set the option to

...

    • Yes to enable timely queue generation and page warming up.
    • Queue Generation Schedule

...

    • : Cron expression here to specify scheduled time to execute queue generation. E.g. 1 1 * * * - At 01:01am every day. Try cron

...

    • expressions here.
    • Warming

...

    • Schedule

...

    • : Cron expression here to specify scheduled time to execute warming up pages. E.g.  */5 * * * * - to run the cron job every five minutes. Try cron

...

    • expressions here.
    • Scheduled Single Batch Size

...

    • : The number of page URLs to be processed at a single scheduled execution.

Image Added

 

Full page cache queue

...

(plus) To perform the extension

...

functional execution,

...

go to Cache Warmer

...

> Url Queue

...

> Url Queue.


Image Modified


(plus) On Url Queue page

Image Modified



  • Generate Queue

...

  • : enqueue all the full page cache

...

  • URLs of the website to the grid. The generating process would take place right upon the button being clicked. After a few seconds, you can reload the page to have a list of all the

...

  • URL.

Image Modified

   

    • Warm up now

...

    • : dequeue all the full page cache

...

    • URLs appear in the grid. The warming process would take place right upon the button being clicked. After a few moments, you can reload the page to see the result. All the urls that have been warmed up will be removed from the queue, the one that cannot be warmed will stay in place. 

...


(plus) Generate and warm up urls through command lines - the 2 main manual operations above are totally able to be executed by command lines. The advantage of running command lines instead is that it does not affect the browsing performance. In addition, it shows more details in the log such as execution time and number of records being processed.

           Queue Generation:    'bin/magento magenest:cachewarmer:generate'
           Pages Warming Up:    'bin/magento magenest:cachewarmer:warm'

...


(plus) You can also find command-line information in the

...

URL queue page. 

Image ModifiedBesides


(plus) Besides, you can selectively warm up or delete pages.  

Image Modified

 

...