From a4b001ee03ee746650830f612166d54005c49377 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 2 Jan 2008 23:03:25 +0000 Subject: [PATCH] Fix cache close. see #5570 git-svn-id: https://develop.svn.wordpress.org/trunk@6540 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/cache.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/wp-includes/cache.php b/wp-includes/cache.php index 2b407d0fe6..9a185a9bdc 100644 --- a/wp-includes/cache.php +++ b/wp-includes/cache.php @@ -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 = '') {