Use 'counts' cache group. see #6884

git-svn-id: https://develop.svn.wordpress.org/trunk@7878 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-05-02 19:42:44 +00:00
parent 81c20ec884
commit d44e29da33
1 changed files with 2 additions and 2 deletions

View File

@ -453,7 +453,7 @@ function wp_count_comments( $post_id = 0 ) {
$post_id = (int) $post_id;
$count = wp_cache_get('comments', "counts-{$post_id}");
$count = wp_cache_get("comments-{$post_id}", 'counts');
if ( false !== $count )
return $count;
@ -479,7 +479,7 @@ function wp_count_comments( $post_id = 0 ) {
}
$stats = (object) $stats;
wp_cache_set('comments', $stats, "counts-{$post_id}");
wp_cache_set("comments-{$post_id}", $stats, 'counts');
return $stats;
}