From bb59e40a224f12b131e153142773333249df0afc Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Fri, 6 Dec 2013 18:59:29 +0000 Subject: [PATCH] Core updates: Explicitly call wp_cache_delete() after a DB upgrade, as not all cache backends allow the entire backend to be flushed. props dd32. fixes #26173. git-svn-id: https://develop.svn.wordpress.org/trunk@26734 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/update-core.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wp-admin/includes/update-core.php b/src/wp-admin/includes/update-core.php index 5d4d1a578f..965d4700ff 100644 --- a/src/wp-admin/includes/update-core.php +++ b/src/wp-admin/includes/update-core.php @@ -894,6 +894,8 @@ function update_core($from, $to) { // Clear the cache to prevent an update_option() from saving a stale db_version to the cache wp_cache_flush(); + // (Not all cache backends listen to 'flush') + wp_cache_delete( 'alloptions', 'options' ); // Remove working directory $wp_filesystem->delete($from, true);