diff options
Diffstat (limited to 'wp-includes/cache.php')
-rw-r--r-- | wp-includes/cache.php | 22 |
1 files changed, 6 insertions, 16 deletions
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 "<p>"; - echo "<strong>Cold Cache Hits:</strong> {$this->cold_cache_hits}<br/>"; - echo "<strong>Warm Cache Hits:</strong> {$this->warm_cache_hits}<br/>"; - echo "<strong>Cache Misses:</strong> {$this->cache_misses}<br/>"; + echo "<strong>Cold Cache Hits:</strong> {$this->cold_cache_hits}<br />"; + echo "<strong>Warm Cache Hits:</strong> {$this->warm_cache_hits}<br />"; + echo "<strong>Cache Misses:</strong> {$this->cache_misses}<br />"; echo "</p>"; foreach ($this->cache as $group => $cache) { echo "<p>"; - echo "<strong>Group:</strong> $group<br/>"; + echo "<strong>Group:</strong> $group<br />"; echo "<strong>Cache:</strong>"; echo "<pre>"; print_r($cache); |