[wp-trac] [WordPress Trac] #13158: Cron : some events may not be scheduled
WordPress Trac
wp-trac at lists.automattic.com
Wed May 25 13:25:01 UTC 2011
#13158: Cron : some events may not be scheduled
--------------------------+-----------------------------
Reporter: arena | Owner: westi
Type: defect (bug) | Status: new
Priority: high | Milestone: Future Release
Component: Cron | Version: 3.1
Severity: major | Resolution:
Keywords: |
--------------------------+-----------------------------
Comment (by vickybiswas):
A Method I used successfully for this specific case maybe helps here
{{{
/**
* Clean Cron from cache so that fresh is fetched
*
* @since 2011-05-18 Vicky Biswas
*/
add_action( 'pre_update_option_cron', 'mmc_pre_update_option_cron',10 );
function mmc_pre_update_option_cron() {
$alloptions = wp_load_alloptions();
if ( isset( $alloptions['cron'] ) ) {
unset ($alloptions['cron']);
wp_cache_set( 'alloptions', $alloptions, 'options' );
} else
wp_cache_delete( 'cron', 'options' );
return false;
}
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/13158#comment:9>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list