WordPress.org

Make WordPress Core

Changeset 40347


Ignore:
Timestamp:
03/28/2017 09:07:22 PM (14 months ago)
Author:
jeremyfelt
Message:

Multisite: Remove unused site-lookup global cache group.

The site-lookup group was introduced in WPMU, but never actually used in WordPress core.

Props johnjamesjacoby.
Fixes #38725.

Location:
trunk
Files:
4 edited

Legend:

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

    r39565 r40347  
    516516
    517517    if ( function_exists( 'wp_cache_add_global_groups' ) ) {
    518         wp_cache_add_global_groups( array( 'users', 'userlogins', 'usermeta', 'user_meta', 'useremail', 'userslugs', 'site-transient', 'site-options', 'site-lookup', 'blog-lookup', 'blog-details', 'site-details', 'rss', 'global-posts', 'blog-id-cache', 'networks', 'sites' ) );
     518        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' ) );
    519519        wp_cache_add_non_persistent_groups( array( 'counts', 'plugins' ) );
    520520    }
  • trunk/src/wp-includes/ms-blogs.php

    r40346 r40347  
    843843                wp_cache_add_global_groups( $global_groups );
    844844            } else {
    845                 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', 'site-details' ) );
     845                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' ) );
    846846            }
    847847            wp_cache_add_non_persistent_groups( array( 'counts', 'plugins' ) );
     
    917917                wp_cache_add_global_groups( $global_groups );
    918918            } else {
    919                 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', 'site-details' ) );
     919                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' ) );
    920920            }
    921921            wp_cache_add_non_persistent_groups( array( 'counts', 'plugins' ) );
  • trunk/tests/phpunit/includes/testcase.php

    r40343 r40347  
    302302        }
    303303        wp_cache_flush();
    304         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', 'site-details' ) );
     304        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' ) );
    305305        wp_cache_add_non_persistent_groups( array( 'comment', 'counts', 'plugins' ) );
    306306    }
  • trunk/tests/phpunit/tests/cache.php

    r40343 r40347  
    2323        $cache_class = get_class( $wp_object_cache );
    2424        $cache = new $cache_class();
    25         $cache->add_global_groups( array( 'global-cache-test', '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', 'site-details' ) );
     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' ) );
    2626        return $cache;
    2727    }
Note: See TracChangeset for help on using the changeset viewer.