Magento xml布局更新已启用缓存 [英] Magento xml layout update with cache enabled
本文介绍了Magento xml布局更新已启用缓存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我的magento商店中,我想在购物车页面中显示不同的页脚.因此,我创建了第二个文件(myfooter.phtml),并将以下布局更新放置在checkout.xml中:
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>
所有功能都像禁用高速缓存的超级按钮一样,但是当我从管理面板启用BLOCK_HTML高速缓存(Blocks HTML输出)时,我得到了原始的footer.phtml
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
部分解决方案是禁用BLOCK_HTML缓存,但是这会使我的存储速度变慢.
A partial solution is to disable the BLOCK_HTML cache, but tis makes my store slow.
任何想法将不胜感激!
推荐答案
尝试一下:
<action method="setCacheLifetime"><lifetime>1</lifetime></action>
这篇关于Magento xml布局更新已启用缓存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文