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',
'global-posts',
'networks',
'network-queries',
'sites',
'site-details',
'site-options',
'site-queries',
'site-transient',
'rss',
'users',

View File

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

View File

@ -16,7 +16,7 @@
*
* @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.