Make WordPress Core

Changeset 7878


Ignore:
Timestamp:
05/02/2008 07:42:44 PM (18 years ago)
Author:
ryan
Message:

Use 'counts' cache group. see #6884

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/comment.php

    r7868 r7878  
    454454        $post_id = (int) $post_id;
    455455
    456         $count = wp_cache_get('comments', "counts-{$post_id}");
     456        $count = wp_cache_get("comments-{$post_id}", 'counts');
    457457
    458458        if ( false !== $count )
     
    480480
    481481        $stats = (object) $stats;
    482         wp_cache_set('comments', $stats, "counts-{$post_id}");
     482        wp_cache_set("comments-{$post_id}", $stats, 'counts');
    483483
    484484        return $stats;
Note: See TracChangeset for help on using the changeset viewer.