lesti fpc - How to refresh full page cache of a particular product in magento -
currently using lesti fpc cache. want refresh particular products cache stock update direct in database.
i find this. don't know how use this.
$this->_getfpc()->clean(sha1('product_' . $item->getproductid()));
you can use lesti in cron or script :
$productid = 'yourproductidhere'; $lesti = mage::getsingleton('fpc/fpc'); $clean = $lesti->clean(sha1('product_' . $productid)); for cms blocks
$blockidentifier = 'blockidentifierhere' $lesti->clean(sha1('cmsblock_' . $blockidentifier)); for cms pages
$pageidentifier = 'pageidentifierhere'; $lesti->clean(sha1('cms_' . $pageidentifier)); for category
$categoryid = 'yourcategoryidhere'; $lesti->clean(sha1('category_' . $categoryid));
Comments
Post a Comment