Script to execute upgrade actions without flushing the cache in Magento

When having many different servers I have faced more than once issues related to module installation/upgrades. Here you have a quick script that upgrades all modules from terminal:

require_once "../app/Mage.php";

$begin = microtime(true);
Mage::log("Upgrade Begin-".$begin);


$end = microtime(true);
Mage::log("Upgrade End-".$end);
Mage::log("Duree : ".($end - $begin));

Leave a Reply

Your email address will not be published.