Fix cache close. see #5570
git-svn-id: http://svn.automattic.com/wordpress/trunk@6540 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
bc53152043
commit
60220997a6
|
@ -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