Вопрос

What is the best way to do a reindex from the data?

I was thinking to create a cronjob every day at night and set the index mode to "manual update".

Now i'm not sure what is the best way to do this. Because i don't know what happens with product updates or the stock from a product. can someone help me please with info about it

Great, Lex

Это было полезно?

Решение

You don't need to set the index options to 'manual update' to run the indexer.php shell script. In fact, it's probably better not to; the 'update on save' option pretty much guarantees your data will be correct if someone modifies it during the day.

One of the only reasons you'd want 'manual update' is if you're running a product import to speed things up.

As Anton said, run a cron script to indexer.php to reindex all data at 3AM and things will be fine.

Другие советы

Magento bundles shell scripts in shell/ folder and there you see indexer.php that allows you to schedule such tasks with cron over command line

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top