[wp-trac] [WordPress Trac] #36904: Add caching to comment feed in WP_Query

WordPress Trac noreply at wordpress.org
Thu May 26 10:14:37 UTC 2016


#36904: Add caching to comment feed in WP_Query
------------------------------------------+-----------------------------
 Reporter:  spacedmonkey                  |       Owner:
     Type:  enhancement                   |      Status:  new
 Priority:  normal                        |   Milestone:  Future Release
Component:  Query                         |     Version:  2.2
 Severity:  normal                        |  Resolution:
 Keywords:  needs-unit-tests needs-patch  |     Focuses:  performance
------------------------------------------+-----------------------------

Comment (by spacedmonkey):

 The latest patch adds back in the documentation. The biggest changed the
 wp_comment_query isn't called twice now. Is now only called after
 post_results have been setup. This makes the code a lot easier to read and
 stops repeated code. As it uses `post__in`, post status isn't an issue, as
 post status isn't part comment query unless you define it.

 The value of the 'comment_feed_where' will be different from before, but I
 am not sure of how much of an issue this is.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/36904#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list