Index management method for manually refreshing Magento

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.