0WordPress的标志3 手动运行WP-CRON的方法

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. 到目前为止,我发现 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

你怎么看? 请给我们一个评论如下! 如果您想订阅,请使用菜单上的订阅链接右上方. 您还可以通过使用下面的链接社会分享这与你的朋友. 干杯.