wp_count_comments() should be cached in a transient.
|Reported by:||Denis-de-Bernardy||Owned by:||ryan|
wp_count_comments() gets called on every admin page. It's not a super expensive on, but it probably belongs in a transient that gets updated whenever the number of pending comment changes.
Change History (12)
Note: See TracTickets for help on using tickets.