使用命令行刷新Magento索引

来源:互联网 发布:js模块化开发框架 编辑:程序博客网 时间:2024/05/01 01:18
如果你在使用linux服务器,登入你的ssh客户端,切换目录到你magento根文件夹中名字是shell的文件中。

在此文件夹中输入如下命令

php -f indexer.php -- -reindex catalog_url

它的意思是刷新Catalog Url Rewrites即网址重写。成功后会有成功提示,如:Catalog URL Rewrites index was rebuilt successfully

我们来看下有哪些索引管理,可以使用Shell的命令行来刷新

php -f indexer.php -- -reindex catalog_urlphp -f indexer.php -- -reindex catalog_product_attributephp -f indexer.php -- -reindex catalog_product_pricephp -f indexer.php -- -reindex catalog_product_flatphp -f indexer.php -- -reindex catalog_category_flat php -f indexer.php -- -reindex catalog_category_product php -f indexer.php -- -reindex catalogsearch_fulltextphp -f indexer.php -- -reindex cataloginventory_stockphp -f indexer.php -- -reindex tag_summary


0 0