Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
litespeed_wiki:cache:litemage:troubleshooting:cart-count-show-wrong-number [2017/05/01 20:59]
Jackson Zhang
litespeed_wiki:cache:litemage:troubleshooting:cart-count-show-wrong-number [2017/05/02 12:55]
Jackson Zhang
Line 2: Line 2:
 My shopping cart count is showing the wrong number. It's showing from the previous cache value, instead of the actual cart count. Why does this happen? My shopping cart count is showing the wrong number. It's showing from the previous cache value, instead of the actual cart count. Why does this happen?
  
-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. 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]].
  • Admin
  • Last modified: 2017/05/02 12:55
  • by Jackson Zhang