WordPress Multisite Cron Network Scale Schedule

I use WP Cron to schedule network cron from the plugin.

I want to run cron hourly no matter what blog it is activated from. Most importantly, I need to prevent cron from starting several times from different sites on the network.

Is there a way to install this using a WordPress planning system?

+5
source share
2 answers

wp-cron on multisite depends on (sub), so each instance is separate. Thus, a call from a.site.com is a completely separate instance from a call from b.site.com

, , , , , cron, .

, , :

1) ( , , ). , wp-config WP_CRON_LOCK_TIMEOUT, 3600. , cron . , .

2) wp-cron , cron wp-cron crontab. define ('DISABLE_WP_CRON', true); wp-config, crontab curl http://site.com/wp-cron.php 3600 ( wget )

3) , wp-cron . script, cron, , , 3600 . , cron. , cron . (. add_site_option() update_site_option() get_site_option(), , , )

4) "premium", PHP, . 60 , . http://codecanyon.net/item/improved-cron/176543

wp-cron.php , , , , .

() cron:

http://wordpress.org/extend/plugins/wp-crontrol/

http://wordpress.org/extend/plugins/wp-cron-control/

http://wordpress.org/extend/plugins/cron-view/

+4

All Articles