1.Command line way
php -f indexer.php -- [options]2.Browser way
$_SERVER['argv'] = array('--reindex','catalog_url');
$_SERVER['REQUEST_METHOD'] = NULL;
$shell = new Mage_Shell_Compiler();
$shell->run();
本文介绍了如何通过命令行和浏览器两种方式,在Magento中执行重新索引操作,包括PHP-findexer.php命令的使用及$_SERVER变量的应用。
1.Command line way
php -f indexer.php -- [options]$_SERVER['argv'] = array('--reindex','catalog_url');
$_SERVER['REQUEST_METHOD'] = NULL;
$shell = new Mage_Shell_Compiler();
$shell->run();
9326

被折叠的 条评论
为什么被折叠?