Make WordPress Core

Changeset 32498

Timestamp:
05/12/2015 08:13:53 PM (9 years ago)
Author:
boonebgorges
Message:

Respect $_wp_suspend_cache_invalidation in clean_term_cache().

Props tollmanz, rmccue.
Fixes #28743.

File:
1 edited

Legend:

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

    r32453 r32498  
    37833783 */
    37843784function clean_term_cache($ids, $taxonomy = '', $clean_taxonomy = true) {
    3785     global $wpdb;
     3785    global $wpdb, $_wp_suspend_cache_invalidation;
     3786
     3787    if ( ! empty( $_wp_suspend_cache_invalidation ) ) {
     3788        return;
     3789    }
    37863790
    37873791    if ( !is_array($ids) )
Note: See TracChangeset for help on using the changeset viewer.