[wp-trac] [WordPress Trac] #19372: Don't call wp_count_comments() when we don't need to
WordPress Trac
noreply at wordpress.org
Wed Nov 4 21:44:04 UTC 2015
#19372: Don't call wp_count_comments() when we don't need to
----------------------------+-----------------------------
Reporter: johnbillion | Owner: wonderboymusic
Type: task (blessed) | Status: assigned
Priority: normal | Milestone: 4.4
Component: Comments | Version: 3.2
Severity: minor | Resolution:
Keywords: has-patch | Focuses: performance
----------------------------+-----------------------------
Comment (by sboisvert):
The issue #32366 solves (slow query on admin) isn't solved by the latest
patch.
What would be nice is to be able to short circuit this with a filter.
Either to ignore this completely or to enable others to add a layer of
caching in wp_count_comments.
Would people be open to putting a filter in there or another way of
bypassing/fixing the potentially slow query?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/19372#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list