Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
litespeed_wiki:cache:litemage:troubleshooting:cart-count-show-wrong-number [2017/05/01 21:02] Jackson Zhang |
litespeed_wiki:cache:litemage:troubleshooting:cart-count-show-wrong-number [2017/05/02 12:55] (current) Jackson Zhang |
||
---|---|---|---|
Line 3: | Line 3: | ||
LiteMage will cache the cart block as a private cache. So the issue is that the cart is not properly hole punched. A simple way is to put "header" in top.links block (go to the Magento Admin Panel and navigate to System → Configuration → LiteMage Configuration and add “header” to Customized Block Names for “toplinks” Tag). This will punch one big hole for the entire header block. If it does not work, need to look into code template and layout file. The goal is to serve the whole page from cache (some from the public cache, some from private cache), so PHP/Magento framework will not be involved at all. | LiteMage will cache the cart block as a private cache. So the issue is that the cart is not properly hole punched. A simple way is to put "header" in top.links block (go to the Magento Admin Panel and navigate to System → Configuration → LiteMage Configuration and add “header” to Customized Block Names for “toplinks” Tag). This will punch one big hole for the entire header block. If it does not work, need to look into code template and layout file. The goal is to serve the whole page from cache (some from the public cache, some from private cache), so PHP/Magento framework will not be involved at all. | ||
+ | |||
+ | The problem/solution will be similar to [[litespeed_wiki:cache:litemage:troubleshooting:logged-in-user-info-shown-to-others|this]]. |