[英]Magento full page cache
When full page cache is enabled(Enterprise), Up-sell products disappear from PDP after its reloading. 启用全页缓存(Enterprise)后,向上销售的产品在重新加载后将从PDP中消失。 Is it a bug(I found it on clear default magento store)?
是一个错误(我在明确的默认magento商店中找到了它)吗? Any advices to solve this problems?
有什么建议可以解决这个问题?
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. 看来您使用的是最新的Magento,并且有一个用于加售的分隔块,并且该块已经由EE FPC模块为您打孔了。 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,
请按照以下步骤进行,
Insert the following into etc/cache.xml
将以下内容插入
etc/cache.xml
catalog/product_list_upsell your.block.name CATALOG_PRODUCT_LIST_UPSELL
YourCompany_YourModule_Model_Container_ProductListUpsell 86400
Ensure that <name>
and <block>
accurately reflect the block class name/type for your upsell block. 确保
<name>
和<block>
准确反映追加销售块的块类名称/类型。
Now, create a new model in Model/Container/ProductListUpsell.
现在,在
Model/Container/ProductListUpsell.
创建一个新模型Model/Container/ProductListUpsell.
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.