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.

migrated from stackoverflow.com Aug 1 '13 at 18:31

This question came from our site for professional and enthusiast programmers.


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

  • Ok Thank you, have worked the first time, I can test more thoroughly just another afternoon. I appreciate the help – Jose Eduardo Jul 26 '13 at 17:56

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, privacy policy and cookie policy

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