magento 1.9.x / turpentine 0.7.10 / Varnish 4.x - block inside cms page not flushing
-
06-10-2020 - |
Question
I am trying to flush a cms block I have added to a page as seen in the picture below.
Now I have put the code on the last screen inside the cms page under the "design" tab. and in the turpentine_esi.xml. None of them seem to be working.
I am flushing with a custom flush event "car_select" that is working since it flushes other references perfectly. What am I missing, or what am I doing wrong? If so sorry and please provide a link.
Solution
There is no way to invalidate the cache inside a cms page. So cache entire cms block or don't cache it at all..
OTHER TIPS
Please add below code in your Page.xml or varnish layout file.
<cms_index_index>
<reference name="carfitment">
<action method="setEsiOptions">
<params>
<access>private</access>
<scope>page</scope>
<ttl>0</ttl>
</params>
</action>
</reference>
</cms_index_index>
Add below code in cms block design and other code from it
<reference name="content">
<block type="core/template" name="carfitment" as="carfitment" template="showoff/fitment/index.phtml" />
</reference>
Save cms page and try to refresh varnish cache.
I Hope it will help you.