Quantcast
Channel: User user3040610 - Stack Overflow
Viewing all articles
Browse latest Browse all 44

Session value not working when FPC cache enabled

$
0
0

Session value not working in blocks when FPC cache enabled.How to handle the session value in cache enabled blocks.I have added the customer session id as below.How to get the customer id from cache in a block.

public function getCacheKeyInfo() {    $info = parent::getCacheKeyInfo();    $info['current_product_id'] = Mage::registry('current_product')->getId();    $info['customer_id'] = Mage::getSingleton('customer/session')->getCustomerId();    return $info;}

Viewing all articles
Browse latest Browse all 44

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>