2

I need to clear the cache for individual product. For example, If admin change any detail/price/qty of product. I need to run script that clear the cache for that particular product only. I am running script which clear the cache for all products but I need to do it for single product. I am running script from route of Magento.

<?php
require_once("app/Mage.php");
Mage::app();
Mage::app()->setCurrentStore(1);
$type = 'BLOCK_HTML';
Enterprise_PageCache_Model_Cache::getCacheInstance()
            ->cleanType($type);
echo "success";

Please suggest. Thank you in advance.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.