我需要在查看产品的价格块中禁用缓存。
我cacheable="false"
在视图上使用过catalog_product_view.xml
,但这不起作用。
<block class="Magento\Catalog\Pricing\Render" name="product.price.final" cacheable="false">
<arguments>
<argument name="price_render" xsi:type="string">product.price.render.default</argument>
<argument name="price_type_code" xsi:type="string">final_price</argument>
<argument name="zone" xsi:type="string">item_view</argument>
</arguments>
</block>