Fix cache close. see #5570
git-svn-id: https://develop.svn.wordpress.org/trunk@6540 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
9ca1712149
commit
a4b001ee03
@ -6,11 +6,7 @@ function wp_cache_add($key, $data, $flag = '', $expire = 0) {
|
||||
}
|
||||
|
||||
function wp_cache_close() {
|
||||
global $wp_object_cache;
|
||||
|
||||
if ( ! isset($wp_object_cache) )
|
||||
return;
|
||||
return $wp_object_cache->save();
|
||||
return true;
|
||||
}
|
||||
|
||||
function wp_cache_delete($id, $flag = '') {
|
||||
|
Loading…
Reference in New Issue
Block a user