Cache API: Make `network-queries` and `site-queries` global cache groups.

Fixes a bug introduced in [55526]. The cache groups `network-queries` and `site-queries` store query results for network and site. These are network level data and should be stored in a global cache group. 

Props spacedmonkey, tillkruess, flixos90.
See #57625.
Built from https://develop.svn.wordpress.org/trunk@55537


git-svn-id: http://core.svn.wordpress.org/trunk@55049 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
spacedmonkey 2023-03-10 17:51:23 +00:00
parent 1bf93a87a4
commit fe32dc4241
3 changed files with 7 additions and 1 deletions

View File

@ -759,9 +759,11 @@ function wp_start_object_cache() {
'blog_meta', 'blog_meta',
'global-posts', 'global-posts',
'networks', 'networks',
'network-queries',
'sites', 'sites',
'site-details', 'site-details',
'site-options', 'site-options',
'site-queries',
'site-transient', 'site-transient',
'rss', 'rss',
'users', 'users',

View File

@ -560,9 +560,11 @@ function switch_to_blog( $new_blog_id, $deprecated = null ) {
'blog_meta', 'blog_meta',
'global-posts', 'global-posts',
'networks', 'networks',
'network-queries',
'sites', 'sites',
'site-details', 'site-details',
'site-options', 'site-options',
'site-queries',
'site-transient', 'site-transient',
'rss', 'rss',
'users', 'users',
@ -651,9 +653,11 @@ function restore_current_blog() {
'blog_meta', 'blog_meta',
'global-posts', 'global-posts',
'networks', 'networks',
'network-queries',
'sites', 'sites',
'site-details', 'site-details',
'site-options', 'site-options',
'site-queries',
'site-transient', 'site-transient',
'rss', 'rss',
'users', 'users',

View File

@ -16,7 +16,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '6.3-alpha-55526'; $wp_version = '6.3-alpha-55537';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.