2

I wonder if you have any way to clear caches Magento Web Service. If not there how do I clear the cache programmatically ?

I need it just for the reason to be developing an application that integrates with Magento Management System, and has some processes that demands he be clean caches.

2 Answers 2

4

Take a look @ https://stackoverflow.com/questions/8701456/clear-magento-cache programmatically

Mage::app()->cleanCache();
1
  • Ok Thank you, have worked the first time, I can test more thoroughly just another afternoon. I appreciate the help
    – Jose Eduardo
    Jul 26, 2013 at 17:56
2

This code will help for sure

 $app = Mage::app(); if ($app != null) 
{    $cache = $app->getCache();    
if ($cache != null)    
{        $cache->clean();   
 } 
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.