Make WordPress Core


Ignore:
Timestamp:
01/28/2010 05:28:44 PM (15 years ago)
Author:
ryan
Message:

Clean up cache re-init code in Multisite. Props nacin. fixes #12065

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/ms-settings.php

    r12885 r12888  
    153153    $_SERVER['PHP_SELF'] = $PHP_SELF = preg_replace("/(\?.*)?$/",'',$_SERVER["REQUEST_URI"]);
    154154
    155 wp_cache_init(); // need to init cache again after blog_id is set
    156 if ( function_exists('wp_cache_add_global_groups') ) { // need to add these again. Yes, it's an ugly hack
    157     wp_cache_add_global_groups(array ('users', 'userlogins', 'usermeta', 'site-options', 'site-lookup', 'blog-lookup', 'blog-details', 'rss'));
    158     wp_cache_add_non_persistent_groups(array( 'comment', 'counts', 'plugins' ));
    159 }
     155// need to init cache again after blog_id is set
     156wp_start_object_cache();
    160157
    161158ms_default_constants( 'uploads' );
Note: See TracChangeset for help on using the changeset viewer.