1

我们有一个定制的过程,它依赖于 cookie 来呈现一些关键的显示选项。这是所有网站访客都需要的唯一真正解决方案。

进程在禁用 FPC 的情况下工作得很好,但启用它后,PHP 全局 $_COOKIE 会为整个浏览器会话缓存。

本质上——我们需要对 FPC 应用补丁以使其忽略 cookie(全部或按名称——现在都可以)。

欣赏是否有人在实现类似目标或合适的起点方面取得了任何成功。

注意:在 AWS nginx 构建上运行 EE1.12。

干杯,t8

4

1 回答 1

0

In FPC with no Dynamic Block Magento application initialization is not done. So as you want some part of your page to vary depending on Cookies you need to use Dynamic Block.

For this you will have to create a container class and set lifetime as Null as in snippet below

1.Try adding this to your container class: protected function _saveCache($data, $id, $tags = array(), $lifetime = null) { return false; } That should prevent it from getting cached.

Also this link on Stackoverflow : How do I include a dynamic block in the product page with full page caching turned on?

details out on Dynamic Blocks and FPC.

于 2013-02-24T10:05:57.427 回答