How to prioritize pages for warming
The default All Pages
warm rule allows warming up all pages of the site based on their popularity. You can create a custom configuration and warm pages in a different order. To do this, you need to:
- Select a group of pages using Page conditions in the Warm rules.
- Set the priority of each Warm rule using the Priority field.
If multiple Warm rules are present, the extension will prioritize warming pages from the rule with the higher priority. Within the selected group of pages, pages with higher Popularity values will be warmed first.
Below are a few configuration examples.
Priority based on page types
Use this to warm up pages depending on their type. For example, start with product pages, then category pages, and then all other pages. To do this, create separate rules for each type:
Rule 1
- Name:
Product pages
- Priority:
50
- Conditions:
Page Type contains catalog_product_view
Rule 2
- Name:
Category pages
- Priority:
40
- Conditions:
Page Type contains catalog_category_view
Rule 3
- Name:
CMS pages
- Priority:
30
- Conditions:
Page Type contains cms_page_view
Priority based on customer group
Magento by default has several customer groups: Not Logged In
(guest users), General
, Wholesale
, Retailer
. For each of these groups, Magento creates separate pages in the cache. Therefore, we will divide them into two groups and set different priorities, so the General group is warmed first. We will create two Warm rules with the following settings:
Rule 1
- Name:
General customer group
- Priority:
10
- Conditions:
Customer Group contains General
Rule 2
- Name:
Other customer groups
- Priority:
5
- Conditions:
Customer Group is one of Not Logged In, Wholesale, Retailer
First, the extension will warm Rule 1 because it has a higher priority.
Priority based on source and popularity
To prioritize warming up pages fetched from File source and visited more than 3
times, create a Warm rule with the following settings:
- Name:
URLs from file source
- Priority:
15
- Conditions:
If ALL of these conditions are TRUE :
URIs from the Source that contains File_source_name.csv
Popularity equals or greater than 3