Sunday, 20 November 2011

To reindex data outside magento


ini_set("display_errors","On");
set_time_limit(0);
ini_set('memory_limit','1024M');
require_once './app/Mage.php';

umask( 0 );
Mage :: app( "default" );
print("Started Rebuilding Index At: " . date("d/m/y h:i:s"));

$process = Mage::getModel('index/process')->load(7);
$process->reindexAll();
print("Finished Rebuilding Index At: " . date("d/m/y h:i:s"));

3 comments :

  1. You are my inhalation , I possess few web logs and sometimes run out from to post : (.

    ReplyDelete
  2. While i began to go through beginning of post i didn't suspect it might be significant information for me personally but right now I am in fact greatful that I located this spot to learn. With thanks to the author.

    ReplyDelete
  3. I am pleased to come across so unique constructive information in this case, we should have develop further approaches in this regard.

    ReplyDelete