From 3a4570b0fc8b3d6339bef71d17d7701554e0bbf7 Mon Sep 17 00:00:00 2001 From: donncha Date: Fri, 12 Oct 2007 16:21:15 +0000 Subject: Merge with WP 2.3 - testing use only! Move pluggable functions out of wpmu-functions and into pluggable.php, fixes #439 git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1069 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-includes/cache.php | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) (limited to 'wp-includes/cache.php') diff --git a/wp-includes/cache.php b/wp-includes/cache.php index 695a986..1b300d4 100644 --- a/wp-includes/cache.php +++ b/wp-includes/cache.php @@ -63,6 +63,7 @@ class WP_Object_Cache { var $dirty_objects = array (); var $non_existant_objects = array (); var $global_groups = array ('users', 'userlogins', 'usermeta', 'site-options', 'site-lookup', 'blog-lookup', 'blog-details'); + var $non_persistent_groups = array('comment'); var $blog_id; var $cold_cache_hits = 0; var $warm_cache_hits = 0; @@ -207,18 +208,7 @@ class WP_Object_Cache { } function load_group_from_db($group) { - global $wpdb; - - if ('category' == $group) { - $this->cache['category'] = array (); - if ($dogs = $wpdb->get_results("SELECT * FROM $wpdb->categories")) { - foreach ($dogs as $catt) { - $this->cache['category'][$catt->cat_ID] = $catt; - $this->cache[$this->key( $catt->cat_ID, 'category' )] = $catt; - } - } - } - + return; } function make_group_dir($group, $perms) { @@ -384,14 +374,14 @@ class WP_Object_Cache { function stats() { echo "

"; - echo "Cold Cache Hits: {$this->cold_cache_hits}
"; - echo "Warm Cache Hits: {$this->warm_cache_hits}
"; - echo "Cache Misses: {$this->cache_misses}
"; + echo "Cold Cache Hits: {$this->cold_cache_hits}
"; + echo "Warm Cache Hits: {$this->warm_cache_hits}
"; + echo "Cache Misses: {$this->cache_misses}
"; echo "

"; foreach ($this->cache as $group => $cache) { echo "

"; - echo "Group: $group
"; + echo "Group: $group
"; echo "Cache:"; echo "

";
 			print_r($cache);
-- 
cgit