Make WordPress Core


Ignore:
Timestamp:
08/04/2022 01:31:19 PM (2 years ago)
Author:
SergeyBiryukov
Message:

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

Follow-up to [946/tests], [1060/tests], mu1784, mu2032 mu2029, [7986], [12128], [12603], [12688], [12732], [12755], [13125], [14009], [15482], [21403], [22092], [31347], [31348], [36258], [36393], [36413], [37918], [40343], [40347], [42836].

See #55647.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/abstract-testcase.php

    r53638 r53823  
    367367    public static function flush_cache() {
    368368        global $wp_object_cache;
     369
    369370        $wp_object_cache->group_ops      = array();
    370371        $wp_object_cache->stats          = array();
    371372        $wp_object_cache->memcache_debug = array();
    372373        $wp_object_cache->cache          = array();
     374
    373375        if ( method_exists( $wp_object_cache, '__remoteset' ) ) {
    374376            $wp_object_cache->__remoteset();
    375377        }
     378
    376379        wp_cache_flush();
    377         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' ) );
     380
     381        wp_cache_add_global_groups(
     382            array(
     383                'users',
     384                'userlogins',
     385                'usermeta',
     386                'user_meta',
     387                'useremail',
     388                'userslugs',
     389                'site-transient',
     390                'site-options',
     391                'blog-lookup',
     392                'blog-details',
     393                'rss',
     394                'global-posts',
     395                'blog-id-cache',
     396                'networks',
     397                'sites',
     398                'site-details',
     399                'blog_meta',
     400            )
     401        );
     402
    378403        wp_cache_add_non_persistent_groups( array( 'comment', 'counts', 'plugins' ) );
    379404    }
Note: See TracChangeset for help on using the changeset viewer.