Magento EE 横幅旋转并启用全页缓存
简要描述我所做的事情:
- 创建 2 个新的测试横幅
- 使用“插入小部件”按钮或通过“设计”选项卡中的 XML 更新将横幅旋转器添加到 cms 页面,选择 2 个测试横幅并将其按系列、随机或随机旋转
- 在浏览器中查看所选页面,刷新
只会显示第一个横幅。
如果 FPC 关闭,横幅将按预期旋转。
这是一个错误,还是我做错了什么?
A brief description of what I do:
- create 2 new test banners
- add a Banner Rotator to a cms page, either using the Insert Widget button or via a XML update in the Design tab, selecting the 2 test banners and rotating them as series, random or shuffle
- view the elected page in the browser, refresh
Only the first banner will be displayed.
If FPC is off instead, the banners will rotate as expected.
Is it a bug, or what am I doing wrong ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
全页缓存的工作方式是,它利用占位符来表示不应该与全页一起缓存的各种数据。示例包括迷你购物车、最近查看的产品等。这些单独的项目通常使用由描述性名称加上用户会话 ID 组成的缓存键单独缓存和更新。
此文件:/app/code/core/Enterprise/PageCache/etc/cache.xml 显示占位符。
您需要做的一个很好的例子在这里:/app/code/core/Enterprise/PageCache/Model/Container/Viewedproducts.php
The way full page cache works is that it utilizes placeholders for various data that is NOT supposed to be cached with the full page. Examples would include the mini cart, recently viewed products, etc. These separate items are cached and updated separately usually using a cache key that is made of a descriptive name plus the user's session ID.
This file: /app/code/core/Enterprise/PageCache/etc/cache.xml shows the placeholders.
A good example for what you need to do is here: /app/code/core/Enterprise/PageCache/Model/Container/Viewedproducts.php