【发布时间】:2014-05-01 15:35:53
【问题描述】:
我创建了一个自定义的 mini-header 和 mini-footer phtml 文件,我在 Magento 安装中使用,但仅在结帐页面上使用。 (这些基本上是非常小的页眉/页脚,内容很少)
e.g
IF (any CHECKOUT page)
Use mini-header & mini-footer
ELSE
Use the default header/footer files for that theme.
我有一个名为“页脚链接”的 CMS 静态块,它有时似乎会覆盖我自己的“mini-footer.phtml” - 它不一致,有时在结帐页面上我会看到我的迷你页脚,有时会看到它很明显,“页脚链接”静态块正在出现(带有 15 个以上的 html 链接)。
目前,我可以强制 Magento 使用我的自定义 mini-footer.phtml 的唯一方法是禁用 Magento Admin 中的“阻止 HTML 输出”缓存存储管理,但是我想要为实时站点启用此选项以提高速度性能。
谁能建议怎么做?
【问题讨论】:
-
在您的模板文件中搜索
Mage::getModel(或->load(。这些通常是主题构建不佳的迹象,并且通常会导致缓存问题。
标签: magento caching frameworks themes magento-1.8