From d44e29da33febd7bb9342fee42e578aa52ad5194 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Fri, 2 May 2008 19:42:44 +0000 Subject: [PATCH] Use 'counts' cache group. see #6884 git-svn-id: https://develop.svn.wordpress.org/trunk@7878 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/comment.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/comment.php b/wp-includes/comment.php index fdb8f28989..3a2b159be7 100644 --- a/wp-includes/comment.php +++ b/wp-includes/comment.php @@ -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; }