summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2008-09-03 17:12:30 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2008-09-03 17:12:30 +0000
commit66b0871abeef45cdbe757c97a643076503b6c656 (patch)
treec413dcd9186fac8fa636d272a934e64157ce9c86
parent72a62931c1a70920f0fbf808842a7bd15daa3be8 (diff)
downloadwordpress-mu-66b0871abeef45cdbe757c97a643076503b6c656.tar.gz
wordpress-mu-66b0871abeef45cdbe757c97a643076503b6c656.tar.xz
wordpress-mu-66b0871abeef45cdbe757c97a643076503b6c656.zip
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
-rw-r--r--wp-settings.php4
1 files changed, 4 insertions, 0 deletions
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/" );