Users: Change cache group from `users-queries` to `user-queries`.

The cache group `users-queries` was added in [55657]. This global cache group, was named to be inline with cache groups added in [55526]. However, the naming of the group does not match, as other cache groups, do not end with s at the end. This change fix this naming. 

Props spacedmonkey, SergeyBiryukov, peterwilsoncc. 
See #40613.
Built from https://develop.svn.wordpress.org/trunk@55680


git-svn-id: http://core.svn.wordpress.org/trunk@55192 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
spacedmonkey 2023-04-24 13:53:22 +00:00
parent 6f745b9fca
commit 3d744b601c
4 changed files with 5 additions and 5 deletions

View File

@ -826,7 +826,7 @@ class WP_User_Query {
"; ";
$cache_value = false; $cache_value = false;
$cache_key = $this->generate_cache_key( $qv, $this->request ); $cache_key = $this->generate_cache_key( $qv, $this->request );
$cache_group = 'users-queries'; $cache_group = 'user-queries';
if ( $qv['cache_results'] ) { if ( $qv['cache_results'] ) {
$cache_value = wp_cache_get( $cache_key, $cache_group ); $cache_value = wp_cache_get( $cache_key, $cache_group );
} }

View File

@ -771,12 +771,12 @@ function wp_start_object_cache() {
'site-transient', 'site-transient',
'rss', 'rss',
'users', 'users',
'user-queries',
'useremail', 'useremail',
'userlogins', 'userlogins',
'usermeta', 'usermeta',
'user_meta', 'user_meta',
'userslugs', 'userslugs',
'users-queries',
) )
); );

View File

@ -568,12 +568,12 @@ function switch_to_blog( $new_blog_id, $deprecated = null ) {
'site-transient', 'site-transient',
'rss', 'rss',
'users', 'users',
'user-queries',
'useremail', 'useremail',
'userlogins', 'userlogins',
'usermeta', 'usermeta',
'user_meta', 'user_meta',
'userslugs', 'userslugs',
'users-queries',
) )
); );
} }
@ -662,12 +662,12 @@ function restore_current_blog() {
'site-transient', 'site-transient',
'rss', 'rss',
'users', 'users',
'user-queries',
'useremail', 'useremail',
'userlogins', 'userlogins',
'usermeta', 'usermeta',
'user_meta', 'user_meta',
'userslugs', 'userslugs',
'users-queries',
) )
); );
} }

View File

@ -16,7 +16,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '6.3-alpha-55678'; $wp_version = '6.3-alpha-55680';
/** /**
* 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.