WARM_UP_CONCURRENCY

  • DefaultNot set
  • Version—Adobe Commerce 2.1.4 and later

Specify the limit of simultaneous requests to send during cache warmup operations to reduce server load. This value limits the number of parallel connections and is useful for environment configurations where the WARM_UP_PAGES post-deploy variable specifies several pages for cache preloading.

stage:
  post-deploy:
    WARM_UP_CONCURRENCY: 4

WARM_UP_PAGES

  • Defaultindex.php
  • Version—Adobe Commerce 2.1.4 and later

Customize the list of pages used to preload the cache in the post_deploy stage. You must configure the post-deploy hook. See the hooks section of the .magento.app.yaml file.

  • single pages—Specify a single page to add to the cache. You do not have to indicate the default base URL. The following example caches the BASE_URL/index.php page:

    stage:
      post-deploy:
        WARM_UP_PAGES:
          - "index.php"
    
  • multiple domains—List multiple URLs. The following example caches pages from two domains:

    stage:
      post-deploy:
        WARM_UP_PAGES:
          - 'http://example1.com/test'
          - 'http://example2.com/test'
    
  • multiple pages—Use the following format to cache multiple pages according to a specific regular expression pattern:

    <entity_type>:<pattern|url|product_sku>:<store_id|store_code>
    
    • entity_type: Possible variants category, cms-page, product, store-page
    • pattern|url|product_sku: Use a regexp pattern or an exact match url to filter the URLs, or use an asterisk (*) for all pages. Use product sku for the product entity type
    • store_id|store_code: Use the ID or Code of the store or an asterisk (*) for all stores, you can pass several store IDs or codes separated with |

    The following example caches for category and cms-page entity types based on these criteria:

    • all category pages for store with ID 1

    • all category pages for stores with code store1 and store2

    • category page cars for store with code store_en

    • cms page contact for all stores

    • cms page contact for stores with ID 1 and 2

    • 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

      stage:
        post-deploy:
          WARM_UP_PAGES:
            - "category:*:1"
            - "category:*:store1|store2"
            - "category:cars:store_en"
            - "cms-page:contact:*"
            - "cms-page:contact:1|2"
            - "category:|car_.*?\\.html$|:2"
            - "category:|tires_.*|:store_gb"
      

    The following example caches for the product entity type based on these criteria:

    • all products for all store (programmatically limited to 100 per store to avoid performance issues)

    • all products for store store1

    • products with sku1 for all stores

    • products with sku1 for stores with code store1 and store2

    • products with sku1, sku2 and sku3 for stores with code store1 and store2

      stage:
        post-deploy:
          WARM_UP_PAGES:
            - "product:*:*"
            - "product:*:store1"
            - "product:sku1:*"
            - "product:sku1:store1|store2"
            - "product:sku1|sku2|sku3:store1|store2"
      

    The following example caches for the store-page entity type based on these criteria:

    • page /contact-us for all stores
    • page /contact-us for store with ID 1
    • page /contact-us for stores with code code1 and code2
          stage:
            post-deploy:
              WARM_UP_PAGES:
                - "store-page:/contact-us:*"
                - "store-page:/contact-us:1"
                - "store-page:/contact-us:code1|code2"
    
Next pageNotifications

Commerce