Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit 0e0d588

Browse files
oshmyheliukhguthrie
authored andcommitted
MAGECLOUD-3258: warm cache with multiple pages (#4749)
* MAGECLOUD-3258: warm cache with multiple pages * MAGECLOUD-3258: warm cache with multiple pages
1 parent efd823d commit 0e0d588

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

guides/v2.1/cloud/env/variables-post-deploy.md

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,23 +44,29 @@ Customize the list of pages used to preload the cache in the `post_deploy` stage
4444
- **multiple pages**—Use the following format to cache multiple pages according to a specific regular expression pattern:
4545

4646
```terminal
47-
<entity_type>:<store_id>:<pattern>
47+
<entity_type>:<pattern|url>:<store_id|store_code>
4848
```
4949

5050
- `entity_type`: Choose `category` or `cms-page`
51-
- `store_id`: Use the ID of the store or an asterisk (\*) for all stores
52-
- `pattern`: Use a `regexp` pattern to filter the URLs or an asterisk (\*) for all pages
51+
- `pattern|url`: Use a `regexp` pattern or an exact match `url` to filter the URLs, or use an asterisk (\*) for all pages
52+
- `store_id|store_code`: Use the ID or Code of the store or an asterisk (\*) for all stores
5353

54-
The following example caches all category pages for store 1, any category pages that begin with `car_` and do not end with `html` for store 2, any category pages that begin with `tires_` for store 3, and all `cms` pages:
54+
The following example caches:
55+
- all category pages for store with ID 1
56+
- category page `cars` for store with code `store_en`
57+
- cms page `contact` for all stores
58+
- any category page that contains `car_` and ends with `html` for store with ID 2
59+
- any category page that contains `tires_` for store with code `store_gb`
5560

5661
```yaml
5762
stage:
5863
post-deploy:
5964
WARM_UP_PAGES:
60-
- "category:1:*"
61-
- "category:2:|car_.*?\.html|"
62-
- "category:3:|tires_.*|"
63-
- cms-page:*:*
65+
- "category:*:1"
66+
- "category:cars:store_en"
67+
- "cms-page:contact:*
68+
- "category:|car_.*?\\.html$|:2"
69+
- "category:|tires_.*|:store_gb"
6470
```
6571

6672
[hooks section]: {{page.baseurl}}/cloud/project/project-conf-files_magento-app.html#hooks

0 commit comments

Comments
 (0)