Respect `$_wp_suspend_cache_invalidation` in `clean_term_cache()`.

Props tollmanz, rmccue.
Fixes #28743.

git-svn-id: https://develop.svn.wordpress.org/trunk@32498 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Boone Gorges 2015-05-12 20:13:53 +00:00
parent 3d4fb6ce50
commit 3a47da7943
1 changed files with 5 additions and 1 deletions

View File

@ -3782,7 +3782,11 @@ function clean_object_term_cache($object_ids, $object_type) {
* term object caches (false). Default true.
*/
function clean_term_cache($ids, $taxonomy = '', $clean_taxonomy = true) {
global $wpdb;
global $wpdb, $_wp_suspend_cache_invalidation;
if ( ! empty( $_wp_suspend_cache_invalidation ) ) {
return;
}
if ( !is_array($ids) )
$ids = array($ids);