我使用以下示例创建了会话消息:
How do I save value in my own session variable in Magento?
这是我的代码:
//在观察者中调用
$inputMessage = 'Hello ' . $customerName;
Mage::getSingleton('core/session')->setWelcomeMessage($inputMessage);在表头模板中调用
Mage::getSingleton('core/session')->getWelcomeMessage();当客户注销并启用缓存时,我遇到了问题- getWelcomeMessage()输出缓存的$inputMessage值;
有没有办法只为WelcomeMessage禁用缓存?我正在使用Magento EE 1.11
发布于 2013-04-17 04:07:05
看起来您启用了FPC。
我建议您首先禁用FPC,并检查此问题是否仍然存在。
如果它消失了,那么使用与FPC相关的排除缓存技巧来检查这个URL:How do I include a dynamic block in the product page with full page caching turned on?
https://stackoverflow.com/questions/16035893
复制相似问题