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:
Ryan Boren 2008-01-02 23:03:25 +00:00
parent 9ca1712149
commit a4b001ee03
1 changed files with 1 additions and 5 deletions

View File

@ -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 = '') {