How to fix missed schedule in wordpress 3

First add follow code to wp_config.php in your root directory.

define(‘ALTERNATE_WP_CRON’, true);

This is wordpress alternative cron mode.

Second step is editing cron interval in includes/cron.php in line 245-246.

current is:

$cron_url = get_option( ‘siteurl’ ) . ‘/wp-cron.php?doing_wp_cron’;

wp_remote_post( $cron_url, array(‘timeout’ => 0.01, ‘blocking’ => false, ‘sslverify’ => apply_filters(‘https_local_ssl_verify’, true)) );

change it to:

$cron_url = get_option( ‘siteurl’ ) . ‘/wp-cron.php?doing_wp_cron’;

wp_remote_post( $cron_url, array(‘timeout’ => 5.00, ‘blocking’ => false, ‘sslverify’ => apply_filters(‘https_local_ssl_verify’, true)) );

That is all. Works for me.


Advertisements