Remove comment_count_cache. fixes #2670

git-svn-id: https://develop.svn.wordpress.org/trunk@3716 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2006-04-19 02:53:02 +00:00
parent fb212022a3
commit be2be64b99
2 changed files with 41 additions and 42 deletions

View File

@@ -1313,7 +1313,7 @@ function update_post_category_cache($post_ids) {
}
function update_post_caches(&$posts) {
global $post_cache, $category_cache, $comment_count_cache, $post_meta_cache;
global $post_cache, $category_cache, $post_meta_cache;
global $wpdb;
// No point in doing all this work if we didn't match any posts.
@@ -1324,7 +1324,6 @@ function update_post_caches(&$posts) {
for ($i = 0; $i < count($posts); $i++) {
$post_id_array[] = $posts[$i]->ID;
$post_cache[$posts[$i]->ID] = &$posts[$i];
$comment_count_cache[$posts[$i]->ID] = $posts[$i]->comment_count;
}
$post_id_list = implode(',', $post_id_array);