From 63d12e0b39cee1cc3df0726d0b1d773648dddb70 Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 2 May 2008 19:42:44 +0000 Subject: [PATCH] Use 'counts' cache group. see #6884 git-svn-id: http://svn.automattic.com/wordpress/trunk@7878 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 fdb8f2898..3a2b159be 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; }