Changeset 61772 for trunk/src/wp-includes/ms-blogs.php
- Timestamp:
- 02/28/2026 12:12:59 AM (7 weeks ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/ms-blogs.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/ms-blogs.php
r61760 r61772 615 615 $non_persistent_groups = false; 616 616 617 if ( is_object( $wp_object_cache ) && isset( $wp_object_cache->global_groups ) ) { 618 $global_groups = array_keys( $wp_object_cache->global_groups ); 619 $all_groups = array_fill_keys( array_keys( $wp_object_cache->cache ), true ); 620 $non_persistent_groups = array_keys( array_diff_key( $all_groups, $wp_object_cache->global_groups ) ); 617 if ( is_object( $wp_object_cache ) && isset( $wp_object_cache->global_groups ) && is_array( $wp_object_cache->global_groups ) ) { 618 619 // Get the global groups as they are. 620 $group_names = $wp_object_cache->global_groups; 621 622 // Get global group keys if non-numeric array. 623 if ( ! wp_is_numeric_array( $group_names ) ) { 624 $group_names = array_keys( $group_names ); 625 } 626 627 $global_groups = $group_names; 628 629 /* 630 * Non-persistent groups: Check for no_mc_groups first (memcached drop-in). 631 * Fall back to cache structure (default cache). 632 */ 633 if ( isset( $wp_object_cache->no_mc_groups ) && is_array( $wp_object_cache->no_mc_groups ) && ! empty( $wp_object_cache->no_mc_groups ) ) { 634 $non_persistent_groups = $wp_object_cache->no_mc_groups; 635 } elseif ( isset( $wp_object_cache->cache ) && is_array( $wp_object_cache->cache ) ) { 636 $all_groups = array_keys( $wp_object_cache->cache ); 637 $non_persistent_groups = array_values( array_diff( $all_groups, $global_groups ) ); 638 } 621 639 } 622 640
Note: See TracChangeset
for help on using the changeset viewer.