admin管理员组

文章数量:1123922

For years I've been running cron by setting DISABLE_WP_CRON to true in wp-config.php and then setting up a cron on my server that runs like this:

* * * * * cd /path/to/site/public_html && /usr/local/bin/wp cron event run --due-now

But I am moving webhosting (same company, different offering) and the new setup doesn't allow me to setup cronjobs in this way, so they recommend setting up an external cronjob on a different system that calls .php?doing_wp_cron via curl/wget. It boggles my mind, but okay, whatevs.

So my question is whether the wp cron event run --due-now command and invoking the /wp-cron.php?doing_wp_cron are EXACTLY the same or not? I think they might be very similar, but unsure if they are exactly the same or if, perhaps, there is some nuanced difference.

本文标签: wp cliIs there a technical difference between invoking wpcronphp and using wp cron event run