My shopping cart count is showing wrong number
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 (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 this.