Use wp_cache_add() instead of wp_cache_set() in update_meta_cache(). fixes #15452
git-svn-id: https://develop.svn.wordpress.org/trunk@16437 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
eb981f0b6c
commit
f721e075e6
@ -346,7 +346,7 @@ function update_meta_cache($meta_type, $object_ids) {
|
||||
}
|
||||
|
||||
foreach ( array_keys($cache) as $object)
|
||||
wp_cache_set($object, $cache[$object], $cache_key);
|
||||
wp_cache_add($object, $cache[$object], $cache_key);
|
||||
|
||||
return $cache;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user