Make WordPress Core


Ignore:
Timestamp:
09/03/2015 03:30:26 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.

Merges [33727] to the 4.3 branch
Props Otto42, dd32, peterwilsoncc
Fixes #33423 for trunk

Location:
branches/4.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.3

  • branches/4.3/src/wp-admin/includes/upgrade.php

    r33647 r33877  
    15901590    $cron_array = _get_cron_array();
    15911591    if ( isset( $cron_array['wp_batch_split_terms'] ) ) {
    1592         foreach ( $cron_array['wp_batch_split_terms'] as $timestamp_hook => $cron_data ) {
    1593             foreach ( $cron_data as $key => $args ) {
    1594                 wp_unschedule_event( 'wp_batch_split_terms', $timestamp_hook, $args['args'] );
    1595             }
    1596         }
     1592        unset( $cron_array['wp_batch_split_terms'] );
     1593        _set_cron_array( $cron_array );
    15971594    }
    15981595}
Note: See TracChangeset for help on using the changeset viewer.