Tag-Archive for » reindexall «

Script to reindex all process in magento

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 :)