When we have a lot of products on our website, such as thousands of items, we refresh Magento index Management often fail. Then the background will not refresh, we can also use the command line to refresh.
Using the command line to refresh index management can greatly reduce system consumption and is easy to succeed.
Let's take a look at the steps, if you're using a Linux server, log in to your SSH client, switch directories to your Magento root folder where the name is in the shell file . (Command to switch folders: CD)
Enter the following command in this folder
Php-f indexer.php---reindex catalog_url
It means refreshing the catalog URL rewrites that is URL rewriting. Successful prompts, such as: Catalog URL rewrites index was rebuilt successfully
using commands
Php-f indexer.php Help
Can be used to help with the command, specific parameter usage can refer to the help practice.
The specific commands are as follows:
Php-f indexer.php---reindex catalog_product_attribute
Php-f indexer.php---reindex catalog_product_price
Php-f indexer.php---reindex catalog_url
Php-f indexer.php---reindex Catalog_product_flat
Php-f indexer.php---reindex catalog_category_flat//not often refreshed
Php-f indexer.php---reindex catalog_category_product
Php-f indexer.php---reindex catalogsearch_fulltext
Php-f indexer.php---reindex cataloginventory_stock
Php-f indexer.php---reindex tag_summary
Other extensions:
in Magento, Reindex is a feature that is often used in addition to being used directly in the background, and can be run from a Magento script, where the script is located in shell\indexer.php.
The three common options for scripting are as follows:
(1) See which options can be reindex
PHP indexer.php Info
The first item is the parameter value, and the second is the interpretation of the value (as seen in the background)
(2) Reindex all options
PHP indexer.php Reindexall
(3) Reindex One of these items
PHP indexer.php--reindex Cataloginventory_stock
The value of the parameter can be checked by (1).
Note that the format of the prompt command in reindex.php help should be as follows:
Php-f indexer.php--reindex Cataloginventory_stock
But the actual discovery of this command is impossible to run.
Index management method for manually refreshing Magento