Changeset 53823 for trunk/tests/phpunit/includes/abstract-testcase.php
- Timestamp:
- 08/04/2022 01:31:19 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/abstract-testcase.php
r53638 r53823 367 367 public static function flush_cache() { 368 368 global $wp_object_cache; 369 369 370 $wp_object_cache->group_ops = array(); 370 371 $wp_object_cache->stats = array(); 371 372 $wp_object_cache->memcache_debug = array(); 372 373 $wp_object_cache->cache = array(); 374 373 375 if ( method_exists( $wp_object_cache, '__remoteset' ) ) { 374 376 $wp_object_cache->__remoteset(); 375 377 } 378 376 379 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 378 403 wp_cache_add_non_persistent_groups( array( 'comment', 'counts', 'plugins' ) ); 379 404 }
Note: See TracChangeset
for help on using the changeset viewer.