From 1f2635d52b34c2a3df967135a20c12f415299103 Mon Sep 17 00:00:00 2001 From: Boone Gorges Date: Wed, 1 Jun 2016 21:26:27 +0000 Subject: [PATCH] Make the 'comment' cache group persistent. 'comment' was made non-persistent in [7986], to address the difficulty of reliable cache invalidation. Since then, the comment system has improved such that we can be more confident that caches are being busted as needed. Props spacedmonkey. Fixes #36906. Built from https://develop.svn.wordpress.org/trunk@37613 git-svn-id: http://core.svn.wordpress.org/trunk@37581 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/load.php | 2 +- wp-includes/ms-blogs.php | 4 ++-- wp-includes/version.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-includes/load.php b/wp-includes/load.php index 31841cc97d..b2181c0a2d 100644 --- a/wp-includes/load.php +++ b/wp-includes/load.php @@ -477,7 +477,7 @@ function wp_start_object_cache() { if ( function_exists( 'wp_cache_add_global_groups' ) ) { wp_cache_add_global_groups( array( 'users', 'userlogins', 'usermeta', 'user_meta', 'useremail', 'userslugs', 'site-transient', 'site-options', 'site-lookup', 'blog-lookup', 'blog-details', 'rss', 'global-posts', 'blog-id-cache', 'networks', 'sites' ) ); - wp_cache_add_non_persistent_groups( array( 'comment', 'counts', 'plugins' ) ); + wp_cache_add_non_persistent_groups( array( 'counts', 'plugins' ) ); } } diff --git a/wp-includes/ms-blogs.php b/wp-includes/ms-blogs.php index e58d8dfe2e..a8b2f34fae 100644 --- a/wp-includes/ms-blogs.php +++ b/wp-includes/ms-blogs.php @@ -766,7 +766,7 @@ function switch_to_blog( $new_blog, $deprecated = null ) { } else { wp_cache_add_global_groups( array( 'users', 'userlogins', 'usermeta', 'user_meta', 'useremail', 'userslugs', 'site-transient', 'site-options', 'site-lookup', 'blog-lookup', 'blog-details', 'rss', 'global-posts', 'blog-id-cache', 'networks', 'sites' ) ); } - wp_cache_add_non_persistent_groups( array( 'comment', 'counts', 'plugins' ) ); + wp_cache_add_non_persistent_groups( array( 'counts', 'plugins' ) ); } } @@ -837,7 +837,7 @@ function restore_current_blog() { } else { wp_cache_add_global_groups( array( 'users', 'userlogins', 'usermeta', 'user_meta', 'useremail', 'userslugs', 'site-transient', 'site-options', 'site-lookup', 'blog-lookup', 'blog-details', 'rss', 'global-posts', 'blog-id-cache', 'networks', 'sites' ) ); } - wp_cache_add_non_persistent_groups( array( 'comment', 'counts', 'plugins' ) ); + wp_cache_add_non_persistent_groups( array( 'counts', 'plugins' ) ); } } diff --git a/wp-includes/version.php b/wp-includes/version.php index 8039467a85..9a52c07b31 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.6-alpha-37612'; +$wp_version = '4.6-alpha-37613'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.