Ticket #11409: 11409.diff
| File 11409.diff, 585 bytes (added by chrisscott, 3 years ago) |
|---|
-
wp-includes/comment.php
816 816 if ( !empty($stats) ) 817 817 return $stats; 818 818 819 $count = wp_cache_get("comments-{$post_id}", 'counts');819 $count = get_transient("comments-{$post_id}"); 820 820 821 821 if ( false !== $count ) 822 822 return $count; … … 845 845 } 846 846 847 847 $stats = (object) $stats; 848 wp_cache_set("comments-{$post_id}", $stats, 'counts');848 set_transient("comments-{$post_id}", $stats); 849 849 850 850 return $stats; 851 851 }
