D
D
dimonfreeman2021-03-25 14:43:06
Magento
dimonfreeman, 2021-03-25 14:43:06

How to remove mini-cart caching in header from Magento 1.9?

The problem is the following, on the main page it caches the mini basket in the header.
And if you go to the catalog - add a product and go to the main one - the number of products is old.

If you disable fpc , everything is ok.

What I tried is
<?php echo $this->getChildHtml('mini-cartpro',false) ?> in the header.

In reference

<action method="setEsiOptions">
          <params>
            <access>private</access>
            <method>ajax</method>
          </params>
        </action>
        <action method="setCacheLifetime"><s>null</s></action>

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question