Skip to content

Commit

Permalink
Correct caching issues with product pages, search and checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
lumnn committed Jan 19, 2022
1 parent 0e6b018 commit 576e3c7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
4 changes: 1 addition & 3 deletions view/frontend/layout/catalog_product_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
<body>
<referenceBlock name="kingfisherdirect_googletagmanager.datalayer">
<arguments>
<argument name="data" xsi:type="array">
<item name="cache_lifetime" xsi:type="number">0</item>
</argument>
<argument name="cache_lifetime" xsi:type="null" />
</arguments>
<block class="KingfisherDirect\GoogleTagManager\Block\ProductDataLayer" name="kingfisherdirect_googletagmanager.datalayer.product" />
</referenceBlock>
Expand Down
4 changes: 1 addition & 3 deletions view/frontend/layout/catalogsearch_result_index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
<body>
<referenceBlock name="kingfisherdirect_googletagmanager.datalayer">
<arguments>
<argument name="data" xsi:type="array">
<item name="cache_lifetime" xsi:type="number">0</item>
</argument>
<argument name="cache_lifetime" xsi:type="null" />
</arguments>
<block class="KingfisherDirect\GoogleTagManager\Block\SearchDataLayer" name="kingfisherdirect_googletagmanager.datalayer.search" />
</referenceBlock>
Expand Down
4 changes: 1 addition & 3 deletions view/frontend/layout/checkout_onepage_success.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
<body>
<referenceBlock name="kingfisherdirect_googletagmanager.datalayer">
<arguments>
<argument name="data" xsi:type="array">
<item name="cache_lifetime" xsi:type="number">0</item>
</argument>
<argument name="cache_lifetime" xsi:type="null" />
</arguments>
<block class="KingfisherDirect\GoogleTagManager\Block\CheckoutSuccessDataLayer" name="kingfisherdirect_googletagmanager.datalayer.checkout_success" />
</referenceBlock>
Expand Down

0 comments on commit 576e3c7

Please sign in to comment.