Script to reindex all process in magento

Posted: January 8, 2013 in Magento
Tags: , ,

Hello,

Below is the script to reindex all process in magento.



// rebuild everything!!!
$processes = Mage::getSingleton('index/indexer')->getProcessesCollection();
$processes->walk('setMode', array(Mage_Index_Model_Process::MODE_REAL_TIME));
$processes->walk('save');

$processes->walk('reindexAll');
$processes->walk('reindexEverything');


I hope above content is useful to you. Thanks for reading my blog.

Thanks,
Bijal Bhavsar 🙂

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.