Make WordPress Core

Changeset 36413


Ignore:
Timestamp:
01/27/2016 01:50:11 PM (9 years ago)
Author:
ocean90
Message:

Multisite: Add the global cache group sites to restore_current_blog() and wp_start_object_cache().

See #32450.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/load.php

    r36317 r36413  
    475475
    476476    if ( function_exists( 'wp_cache_add_global_groups' ) ) {
    477         wp_cache_add_global_groups( array( 'users', 'userlogins', 'usermeta', 'user_meta', 'useremail', 'userslugs', 'site-transient', 'site-options', 'site-lookup', 'blog-lookup', 'blog-details', 'rss', 'global-posts', 'blog-id-cache', 'networks' ) );
     477        wp_cache_add_global_groups( array( 'users', 'userlogins', 'usermeta', 'user_meta', 'useremail', 'userslugs', 'site-transient', 'site-options', 'site-lookup', 'blog-lookup', 'blog-details', 'rss', 'global-posts', 'blog-id-cache', 'networks', 'sites' ) );
    478478        wp_cache_add_non_persistent_groups( array( 'comment', 'counts', 'plugins' ) );
    479479    }
  • trunk/src/wp-includes/ms-blogs.php

    r36411 r36413  
    732732                wp_cache_add_global_groups( $global_groups );
    733733            } else {
    734                 wp_cache_add_global_groups( array( 'users', 'userlogins', 'usermeta', 'user_meta', 'useremail', 'userslugs', 'site-transient', 'site-options', 'site-lookup', 'blog-lookup', 'blog-details', 'rss', 'global-posts', 'blog-id-cache', 'networks' ) );
     734                wp_cache_add_global_groups( array( 'users', 'userlogins', 'usermeta', 'user_meta', 'useremail', 'userslugs', 'site-transient', 'site-options', 'site-lookup', 'blog-lookup', 'blog-details', 'rss', 'global-posts', 'blog-id-cache', 'networks', 'sites' ) );
    735735            }
    736736            wp_cache_add_non_persistent_groups( array( 'comment', 'counts', 'plugins' ) );
Note: See TracChangeset for help on using the changeset viewer.