WordPress.org

Make WordPress Core

Ticket #11409: 11409.diff

File 11409.diff, 585 bytes (added by chrisscott, 8 years ago)
  • wp-includes/comment.php

     
    816816        if ( !empty($stats) )
    817817                return $stats;
    818818
    819         $count = wp_cache_get("comments-{$post_id}", 'counts');
     819        $count = get_transient("comments-{$post_id}");
    820820
    821821        if ( false !== $count )
    822822                return $count;
     
    845845        }
    846846
    847847        $stats = (object) $stats;
    848         wp_cache_set("comments-{$post_id}", $stats, 'counts');
     848        set_transient("comments-{$post_id}", $stats);
    849849
    850850        return $stats;
    851851}