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.

git-svn-id: https://develop.svn.wordpress.org/trunk@55537 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jonny Harris 2023-03-10 17:49:58 +00:00
parent 82cd434194
commit c421c7ead6
3 changed files with 8 additions and 0 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

@ -399,9 +399,11 @@ abstract class WP_UnitTestCase_Base extends PHPUnit_Adapter_TestCase {
'blog_meta',
'global-posts',
'networks',
'network-queries',
'sites',
'site-details',
'site-options',
'site-queries',
'site-transient',
'rss',
'users',