Skip to content
This repository has been archived by the owner on Mar 9, 2024. It is now read-only.

Commit

Permalink
WP-r55680: Users: Change cache group from users-queries to `user-qu…
Browse files Browse the repository at this point in the history
…eries`.

The cache group `users-queries` was added in https://core.trac.wordpress.org/changeset/55657. This global cache group, was named to be inline with cache groups added in https://core.trac.wordpress.org/changeset/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.

WP:Props spacedmonkey, SergeyBiryukov, peterwilsoncc.
See https://core.trac.wordpress.org/ticket/40613.

---

Merges https://core.trac.wordpress.org/changeset/55680 / WordPress/wordpress-develop@201a30d387 to ClassicPress.
  • Loading branch information
spacedmonkey authored and mattyrob committed Jul 18, 2023
1 parent b3db903 commit 5a9c3c2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/wp-includes/class-wp-user-query.php
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,7 @@ public function query() {
";
$cache_value = false;
$cache_key = $this->generate_cache_key( $qv, $this->request );
$cache_group = 'users-queries';
$cache_group = 'user-queries';
if ( $qv['cache_results'] ) {
$cache_value = wp_cache_get( $cache_key, $cache_group );
}
Expand Down
2 changes: 1 addition & 1 deletion src/wp-includes/load.php
Original file line number Diff line number Diff line change
Expand Up @@ -765,12 +765,12 @@ function wp_start_object_cache() {
'site-transient',
'rss',
'users',
'user-queries',
'useremail',
'userlogins',
'usermeta',
'user_meta',
'userslugs',
'users-queries',
)
);

Expand Down
4 changes: 2 additions & 2 deletions src/wp-includes/ms-blogs.php
Original file line number Diff line number Diff line change
Expand Up @@ -566,12 +566,12 @@ function switch_to_blog( $new_blog_id, $deprecated = null ) {
'site-transient',
'rss',
'users',
'user-queries',
'useremail',
'userlogins',
'usermeta',
'user_meta',
'userslugs',
'users-queries',
)
);
}
Expand Down Expand Up @@ -658,12 +658,12 @@ function restore_current_blog() {
'site-transient',
'rss',
'users',
'user-queries',
'useremail',
'userlogins',
'usermeta',
'user_meta',
'userslugs',
'users-queries',
)
);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/includes/abstract-testcase.php
Original file line number Diff line number Diff line change
Expand Up @@ -406,12 +406,12 @@ public static function flush_cache() {
'site-transient',
'rss',
'users',
'user-queries',
'useremail',
'userlogins',
'usermeta',
'user_meta',
'userslugs',
'users-queries',
)
);

Expand Down

0 comments on commit 5a9c3c2

Please sign in to comment.