mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-29 07:37:44 +02:00
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() {
|
function wp_cache_close() {
|
||||||
global $wp_object_cache;
|
return true;
|
||||||
|
|
||||||
if ( ! isset($wp_object_cache) )
|
|
||||||
return;
|
|
||||||
return $wp_object_cache->save();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function wp_cache_delete($id, $flag = '') {
|
function wp_cache_delete($id, $flag = '') {
|
||||||
|
Loading…
Reference in New Issue
Block a user