From 5e9b5c8db7c521b8e54a5515c6f7b338b3542aec Mon Sep 17 00:00:00 2001 From: Oleksandr Shmyheliuk Date: Thu, 13 Jun 2019 10:50:18 -0500 Subject: [PATCH 1/2] MAGECLOUD-3258: warm cache with multiple pages --- .../v2.1/cloud/env/variables-post-deploy.md | 22 ++++++++++++------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/guides/v2.1/cloud/env/variables-post-deploy.md b/guides/v2.1/cloud/env/variables-post-deploy.md index 146f14f6c59..7f0878e5020 100644 --- a/guides/v2.1/cloud/env/variables-post-deploy.md +++ b/guides/v2.1/cloud/env/variables-post-deploy.md @@ -44,23 +44,29 @@ Customize the list of pages used to preload the cache in the `post_deploy` stage - **multiple pages**—Use the following format to cache multiple pages according to a specific regular expression pattern: ```terminal - :: + :: ``` - `entity_type`: Choose `category` or `cms-page` - - `store_id`: Use the ID of the store or an asterisk (\*) for all stores - - `pattern`: Use a `regexp` pattern to filter the URLs or an asterisk (\*) for all pages + - `pattern`: Use a `regexp` pattern or exact match `url` to filter the URLs or an asterisk (\*) for all pages + - `store_id|store_code`: Use the ID or Code of the store or an asterisk (\*) for all stores - 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: + The following example caches + - all category pages for store with id 1 + - category page `cars` for store with code `store_en` + - cms page `contanct` for all stores + - any category pages that contains `car_` and end with `html` for store with id 2 + - any category pages that contains `tires_` for store with code `store_gb` ```yaml stage: post-deploy: WARM_UP_PAGES: - - "category:1:*" - - "category:2:|car_.*?\.html|" - - "category:3:|tires_.*|" - - cms-page:*:* + - "category:*:1" + - "category:cars:store_en" + - "cms-page:contact:* + - "category:|car_.*?\\.html$|:2" + - "category:|tires_.*|:store_gb" ``` [hooks section]: {{page.baseurl}}/cloud/project/project-conf-files_magento-app.html#hooks From e61c13fb721cbd9037343d40680b0c7c2089fb2c Mon Sep 17 00:00:00 2001 From: Oleksandr Shmyheliuk Date: Thu, 13 Jun 2019 12:13:42 -0500 Subject: [PATCH 2/2] MAGECLOUD-3258: warm cache with multiple pages --- guides/v2.1/cloud/env/variables-post-deploy.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/guides/v2.1/cloud/env/variables-post-deploy.md b/guides/v2.1/cloud/env/variables-post-deploy.md index 7f0878e5020..3fb17594e60 100644 --- a/guides/v2.1/cloud/env/variables-post-deploy.md +++ b/guides/v2.1/cloud/env/variables-post-deploy.md @@ -48,15 +48,15 @@ Customize the list of pages used to preload the cache in the `post_deploy` stage ``` - `entity_type`: Choose `category` or `cms-page` - - `pattern`: Use a `regexp` pattern or exact match `url` to filter the URLs or an asterisk (\*) for all pages + - `pattern|url`: Use a `regexp` pattern or an exact match `url` to filter the URLs, or use an asterisk (\*) for all pages - `store_id|store_code`: Use the ID or Code of the store or an asterisk (\*) for all stores - The following example caches - - all category pages for store with id 1 + The following example caches: + - all category pages for store with ID 1 - category page `cars` for store with code `store_en` - - cms page `contanct` for all stores - - any category pages that contains `car_` and end with `html` for store with id 2 - - any category pages that contains `tires_` for store with code `store_gb` + - cms page `contact` for all stores + - any category page that contains `car_` and ends with `html` for store with ID 2 + - any category page that contains `tires_` for store with code `store_gb` ```yaml stage: