Changeset 53823
- Timestamp:
- 08/04/2022 01:31:19 PM (2 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/load.php
r53749 r53823 732 732 733 733 if ( function_exists( 'wp_cache_add_global_groups' ) ) { 734 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' ) ); 734 wp_cache_add_global_groups( 735 array( 736 'users', 737 'userlogins', 738 'usermeta', 739 'user_meta', 740 'useremail', 741 'userslugs', 742 'site-transient', 743 'site-options', 744 'blog-lookup', 745 'blog-details', 746 'rss', 747 'global-posts', 748 'blog-id-cache', 749 'networks', 750 'sites', 751 'site-details', 752 'blog_meta', 753 ) 754 ); 755 735 756 wp_cache_add_non_persistent_groups( array( 'counts', 'plugins' ) ); 736 757 } -
trunk/src/wp-includes/ms-blogs.php
r49183 r53823 553 553 wp_cache_add_global_groups( $global_groups ); 554 554 } else { 555 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' ) ); 555 wp_cache_add_global_groups( 556 array( 557 'users', 558 'userlogins', 559 'usermeta', 560 'user_meta', 561 'useremail', 562 'userslugs', 563 'site-transient', 564 'site-options', 565 'blog-lookup', 566 'blog-details', 567 'rss', 568 'global-posts', 569 'blog-id-cache', 570 'networks', 571 'sites', 572 'site-details', 573 'blog_meta', 574 ) 575 ); 556 576 } 557 577 … … 624 644 wp_cache_add_global_groups( $global_groups ); 625 645 } else { 626 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' ) ); 646 wp_cache_add_global_groups( 647 array( 648 'users', 649 'userlogins', 650 'usermeta', 651 'user_meta', 652 'useremail', 653 'userslugs', 654 'site-transient', 655 'site-options', 656 'blog-lookup', 657 'blog-details', 658 'rss', 659 'global-posts', 660 'blog-id-cache', 661 'networks', 662 'sites', 663 'site-details', 664 'blog_meta', 665 ) 666 ); 627 667 } 628 668 -
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 } -
trunk/tests/phpunit/includes/object-cache.php
r53767 r53823 808 808 * @var array 809 809 */ 810 public $global_groups = array( 'users', 'userlogins', 'usermeta', 'site-options', 'site-lookup', 'blog-lookup', 'blog-details', 'rss' ); 810 public $global_groups = array( 811 'users', 812 'userlogins', 813 'usermeta', 814 'site-options', 815 'site-lookup', 816 'blog-lookup', 817 'blog-details', 818 'rss', 819 ); 811 820 812 821 /** -
trunk/tests/phpunit/tests/cache.php
r53822 r53823 21 21 private function &init_cache() { 22 22 global $wp_object_cache; 23 23 24 $cache_class = get_class( $wp_object_cache ); 24 25 $cache = new $cache_class(); 25 $cache->add_global_groups( array( 'global-cache-test', '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' ) ); 26 27 $cache->add_global_groups( 28 array( 29 'global-cache-test', 30 'users', 31 'userlogins', 32 'usermeta', 33 'user_meta', 34 'useremail', 35 'userslugs', 36 'site-transient', 37 'site-options', 38 'blog-lookup', 39 'blog-details', 40 'rss', 41 'global-posts', 42 'blog-id-cache', 43 'networks', 44 'sites', 45 'site-details', 46 ) 47 ); 48 26 49 return $cache; 27 50 }
Note: See TracChangeset
for help on using the changeset viewer.