dpapanik
dpapanik

Reputation: 73

Magento xml layout update with cache enabled

In my magento store I want to display a different footer in cart page. So I created a second file (myfooter.phtml) and I placed in checkout.xml the following layout update:

<reference name="footer">
<action method="setTemplate"><template>page/html/myfooter.phtml</template></action>
</reference>

Everything works like a charm with cache disabled but when I enable BLOCK_HTML cache (Blocks HTML output) from admin panel I get the original footer.phtml

A partial solution is to disable the BLOCK_HTML cache, but tis makes my store slow.

Any idea would be appreciated!

Upvotes: 1

Views: 1792

Answers (1)

massimilianoarceri
massimilianoarceri

Reputation: 363

Try this:

<action method="setCacheLifetime"><lifetime>1</lifetime></action>

Upvotes: 1

Related Questions