Magento整页缓存 [英] Magento full page cache
问题描述
启用全页缓存(Enterprise)后,向上销售的产品在重新加载后将从PDP中消失.这是一个错误(我在明确的默认magento商店中找到了它)吗?有什么建议可以解决这个问题吗?
When full page cache is enabled(Enterprise), Up-sell products disappear from PDP after its reloading. Is it a bug(I found it on clear default magento store)? Any advices to solve this problems?
推荐答案
您似乎正在使用最新的Magento,并且有一个用于加售的块,并且EE FPC模块已经为您打孔了.由于配置的打孔功能需要正确命名块的名称和基础块,如下所示,
It looks like you are using the latest Magento and there is a block separated for upsell and the block is already hole-punched for you by the EE FPC module. As the hole-punch configured requires that the name of the block and the base block itself are correctly named as below,
<block>catalog/product_list_upsell</block>
<name>product.info.upsell</name>
有必要创建自己的打孔器.请按照以下步骤进行,
It is necessary to create you own hole punch. Kindly follow these steps to proceed,
将以下内容插入etc/cache.xml
catalog/product_list_upsell your.block.name CATALOG_PRODUCT_LIST_UPSELL
YourCompany_YourModule_Model_Container_ProductListUpsell 86400
确保<name>
和<block>
准确反映加售区块的区块类名称/类型.
Ensure that <name>
and <block>
accurately reflect the block class name/type for your upsell block.
现在,在Model/Container/ProductListUpsell.
这篇关于Magento整页缓存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!