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:
parent
3d4fb6ce50
commit
3a47da7943
@ -3782,7 +3782,11 @@ function clean_object_term_cache($object_ids, $object_type) {
|
|||||||
* term object caches (false). Default true.
|
* term object caches (false). Default true.
|
||||||
*/
|
*/
|
||||||
function clean_term_cache($ids, $taxonomy = '', $clean_taxonomy = 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) )
|
if ( !is_array($ids) )
|
||||||
$ids = array($ids);
|
$ids = array($ids);
|
||||||
|
Loading…
Reference in New Issue
Block a user