Use wp_cache_add() instead of wp_cache_set() in update_meta_cache(). fixes #15452
git-svn-id: http://svn.automattic.com/wordpress/trunk@16437 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c8b4e1cf5d
commit
01a32c0af0
|
@ -346,7 +346,7 @@ function update_meta_cache($meta_type, $object_ids) {
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ( array_keys($cache) as $object)
|
foreach ( array_keys($cache) as $object)
|
||||||
wp_cache_set($object, $cache[$object], $cache_key);
|
wp_cache_add($object, $cache[$object], $cache_key);
|
||||||
|
|
||||||
return $cache;
|
return $cache;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue