Coding Standards: Wrap long lines with global cache groups for better readability.

Follow-up to [946/tests], [1060/tests], [https://mu.trac.wordpress.org/changeset/1784 mu1784], [https://mu.trac.wordpress.org/changeset/2032 mu2032] [https://mu.trac.wordpress.org/changeset/2029 mu2029], [7986], [12128], [12603], [12688], [12732], [12755], [13125], [14009], [15482], [21403], [22092], [31347], [31348], [36258], [36393], [36413], [37918], [40343], [40347], [42836].

See #55647.
Built from https://develop.svn.wordpress.org/trunk@53823


git-svn-id: http://core.svn.wordpress.org/trunk@53382 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2022-08-04 13:33:12 +00:00
parent 1a460d5155
commit 309ff9c4ba
3 changed files with 65 additions and 4 deletions

View File

@ -731,7 +731,28 @@ function wp_start_object_cache() {
}
if ( function_exists( 'wp_cache_add_global_groups' ) ) {
wp_cache_add_global_groups( array( 'users', 'userlogins', 'usermeta', 'user_meta', 'useremail', 'userslugs', 'site-transient', 'site-options', 'blog-lookup', 'blog-details', 'site-details', 'rss', 'global-posts', 'blog-id-cache', 'networks', 'sites', 'blog_meta' ) );
wp_cache_add_global_groups(
array(
'users',
'userlogins',
'usermeta',
'user_meta',
'useremail',
'userslugs',
'site-transient',
'site-options',
'blog-lookup',
'blog-details',
'rss',
'global-posts',
'blog-id-cache',
'networks',
'sites',
'site-details',
'blog_meta',
)
);
wp_cache_add_non_persistent_groups( array( 'counts', 'plugins' ) );
}

View File

@ -552,7 +552,27 @@ function switch_to_blog( $new_blog_id, $deprecated = null ) {
if ( is_array( $global_groups ) ) {
wp_cache_add_global_groups( $global_groups );
} else {
wp_cache_add_global_groups( array( 'users', 'userlogins', 'usermeta', 'user_meta', 'useremail', 'userslugs', 'site-transient', 'site-options', 'blog-lookup', 'blog-details', 'rss', 'global-posts', 'blog-id-cache', 'networks', 'sites', 'site-details', 'blog_meta' ) );
wp_cache_add_global_groups(
array(
'users',
'userlogins',
'usermeta',
'user_meta',
'useremail',
'userslugs',
'site-transient',
'site-options',
'blog-lookup',
'blog-details',
'rss',
'global-posts',
'blog-id-cache',
'networks',
'sites',
'site-details',
'blog_meta',
)
);
}
wp_cache_add_non_persistent_groups( array( 'counts', 'plugins' ) );
@ -623,7 +643,27 @@ function restore_current_blog() {
if ( is_array( $global_groups ) ) {
wp_cache_add_global_groups( $global_groups );
} else {
wp_cache_add_global_groups( array( 'users', 'userlogins', 'usermeta', 'user_meta', 'useremail', 'userslugs', 'site-transient', 'site-options', 'blog-lookup', 'blog-details', 'rss', 'global-posts', 'blog-id-cache', 'networks', 'sites', 'site-details', 'blog_meta' ) );
wp_cache_add_global_groups(
array(
'users',
'userlogins',
'usermeta',
'user_meta',
'useremail',
'userslugs',
'site-transient',
'site-options',
'blog-lookup',
'blog-details',
'rss',
'global-posts',
'blog-id-cache',
'networks',
'sites',
'site-details',
'blog_meta',
)
);
}
wp_cache_add_non_persistent_groups( array( 'counts', 'plugins' ) );

View File

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