Make WordPress Core


Ignore:
Timestamp:
08/25/2015 04:31:52 AM (9 years ago)
Author:
dd32
Message:

Term Splitting: Switch to a faster cron unschedule process to benefit sites with thousands of affected jobs. Fix the cron hook name in the failsafe rescheduler.

Props Otto42, dd32, peterwilsoncc
See #33423

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/taxonomy.php

    r33715 r33727  
    44424442
    44434443/**
    4444  * In order to avoid the wp_batch_split_terms() job being accidentally removed,
     4444 * In order to avoid the _wp_batch_split_terms() job being accidentally removed,
    44454445 * check that it's still scheduled while we haven't finished splitting terms.
    44464446 *
     
    44494449 */
    44504450function _wp_check_for_scheduled_split_terms() {
    4451     if ( ! get_option( 'finished_splitting_shared_terms' ) && ! wp_next_scheduled( 'wp_batch_split_terms' ) ) {
    4452         wp_schedule_single_event( time() + MINUTE_IN_SECONDS, 'wp_batch_split_terms' );
     4451    if ( ! get_option( 'finished_splitting_shared_terms' ) && ! wp_next_scheduled( 'wp_split_shared_term_batch' ) ) {
     4452        wp_schedule_single_event( time() + MINUTE_IN_SECONDS, 'wp_split_shared_term_batch' );
    44534453    }
    44544454}
Note: See TracChangeset for help on using the changeset viewer.