I’ve recently been looking at how best to run wp-cron manually from the system to avoid a performance hit when a visitor loads the site. I’ve so far found 3 different ways to run this. There may be others.
I make no comment on the advantages or disadvantages of each yet, because I simply don’t know well enough to be in a position to make recommendations…
wget -q -O - https://yourdomain.tld/wp-cron.php?doing_wp_cron >/dev/null 2>&1
wp cron event run --due-now --path='/path/to/wordpress/'
php /path/to/wordpress/wp-cron.php >/dev/null 2>&1
Found this useful? Please do let us know by dropping a comment below. If you would like to subscribe please use the subscribe link on the menu at the top right. You can also share this with your friends by using the social links below. Cheers.