GordonLesti / Lesti_Fpc

Simple Magento Fullpagecache
https://gordonlesti.com/lesti-fpc-documentationversion-1-4-5/
Other
358 stars 158 forks source link

How to exclude from caching the price in the category of goods imposed by CMS. #186

Closed dmitryzar closed 8 years ago

dmitryzar commented 8 years ago

Hello Gordon. Please help me I insert product category on the home page through the CMS. {{Block type="catalog/product_list"template="catalog/product/list.phtml"category_id="1"}} I need to exclude from caching the price of goods. I added to the Dynamic Blocks - catalog_product_price_template, but it does not work for CMS pages.

Tell me how can I eliminate from the cache in the price derived in this way categories. thank

GordonLesti commented 8 years ago

Hello @myZmage this isn't that easy.

<block type="catalog/product_list" template="catalog/product/list.phtml" name="category.one">
    <action method="setCategoryId"><category_id>1</category_id></action>
</block>

Please note in general, I wouldn't recommend this way. Can you explain why you need to exclude the prices from caching?

dmitryzar commented 8 years ago

Thanks for the reply all happened. Dynamic price is loaded with XML requests from other resources and can, in the case of the cache, do not correspond to reality.