Wordfence blocks cron command
-
Hi,
We are using the Relevanssi plugin on our site for search indexing.
It integrates with the wp-cli script to allow you to index large sites through a cron command: wp-cli.phar relevanssi index
This works fine when I run it directly through SSH, but when I try to run it by cron, it gets blocked by Wordfence.
This is the output of the cron notification email when it tries to run: https://gist.github.com/robwent/faf6e133bea51405cb91b520014efc9e
Is there any way to whitelist the cron command so that it can index the posts?
Why would runing it directly be different to the same command being run by a cron?
Note: I originally tagged on to the end of someone elses post which might not be the same issue – https://ww.wp.xz.cn/support/topic/wordfence-appears-to-be-stepping-on-the-wp-cli/#post-10660867
The topic ‘Wordfence blocks cron command’ is closed to new replies.