I have WordPress Multisite with several sites. I set up DISABLE_WP_CRON
to true
in my wp-config.php
.
If we set up cron task with wget or curl we have 30 sec rule to execute PHP script. It’s so small to send tons of email notifications and do other stuff (maybe remote SMTP server connection is slow, maybe it’s really huge bunch of email notifications from bbPress or anything).
Maybe we can use something like this?
php -q wp-cron.php
But it’s only run cron to one site in Multisite (each site have their own cron tasks in different MySQL tables).
P. S. On wpmudev.org forum I found strange “solution” which also use Curl.
Another P. S. WP CLI have awesome wp cron
commands but it’s only allow run cron tasks manually (yep, we can use --url
attr). For example:
wp cron event list --url=multisite.com
wp cron event list --url=subdomain.multisite.com