开发者

Magento EE banners rotation with full page caching on

开发者 https://www.devze.com 2023-03-31 18:25 出处:网络
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 ba

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 开发者_Python百科off instead, the banners will rotate as expected.

Is it a bug, or what am I doing wrong ?


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

0

精彩评论

暂无评论...
验证码 换一张
取 消