How to create cronjob for auto reindex?
-
Hi
I am trying to create a cronjob for Algolia auto reindex post/page. The command is:*/30 * * * * wp algolia reindex --all >> /home/mywebsites/web/example.com/logs/algolia-reindex.log 2>&1
However, the log file shows the error below:
/bin/sh: 1: wp: not found
The correct wp-cli path is: /usr/local/bin
How can I correct the command/path … to get it working?
Thank you for your help.
Uyen
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How to create cronjob for auto reindex?’ is closed to new replies.