WordPress.org

Make WordPress Core

Changeset 36258


Ignore:
Timestamp:
01/11/2016 05:03:35 AM (4 years ago)
Author:
dd32
Message:

Multisite: The networks group should be global.

Fixes #35251.

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

Legend:

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

    r35882 r36258  
    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' ) );
     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' ) );
    478478        wp_cache_add_non_persistent_groups( array( 'comment', 'counts', 'plugins' ) );
    479479    }
  • trunk/src/wp-includes/ms-blogs.php

    r36232 r36258  
    656656                wp_cache_add_global_groups( $global_groups );
    657657            } else {
    658                 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' ) );
     658                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' ) );
    659659            }
    660660            wp_cache_add_non_persistent_groups( array( 'comment', 'counts', 'plugins' ) );
Note: See TracChangeset for help on using the changeset viewer.