0Wordpress Logo3 ways to run WP-CRON manually

I’ve recently been look­ing at how best to run wp-cron manu­ally from the sys­tem to avoid a per­form­ance hit when a vis­it­or loads the site. I’ve so far found 3 dif­fer­ent ways to run this. There may be oth­ers.


I make no com­ment on the advant­ages or dis­ad­vant­ages of each yet, because I simply don’t know well enough to be in a pos­i­tion to make recom­mend­a­tions…

  • 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

Please send us your thoughts by commenting 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.

Leave a Reply