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
版权声明:本文标题:wp cli - Is there a technical difference between invoking `wp-cron.php` and using `wp cron event run`? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736605577a1945317.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论