From 66b0871abeef45cdbe757c97a643076503b6c656 Mon Sep 17 00:00:00 2001 From: donncha Date: Wed, 3 Sep 2008 17:12:30 +0000 Subject: Need to setup global and non persistent groups again after cache is reinitialised. git-svn-id: http://svn.automattic.com/wordpress-mu/branches/2.6@1468 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-settings.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'wp-settings.php') diff --git a/wp-settings.php b/wp-settings.php index cb9138c..d58c344 100644 --- a/wp-settings.php +++ b/wp-settings.php @@ -239,6 +239,10 @@ $wpdb->set_prefix($table_prefix); // set up blog tables $table_prefix = $table_prefix . $blog_id . '_'; wp_cache_init(); // need to init cache again after blog_id is set +if ( function_exists('wp_cache_add_global_groups') ) { // need to add these again. Yes, it's an ugly hack + wp_cache_add_global_groups(array ('users', 'userlogins', 'usermeta', 'site-options', 'site-lookup', 'blog-lookup', 'blog-details', 'rss')); + wp_cache_add_non_persistent_groups(array( 'comment', 'counts', 'plugins' )); +} if( !defined( "UPLOADS" ) ) define( "UPLOADS", "wp-content/blogs.dir/{$wpdb->blogid}/files/" ); -- cgit