[wp-trac] [WordPress Trac] #41348: Improved caching on WP_Comment_Query

WordPress Trac noreply at wordpress.org
Sun Jul 30 14:55:18 UTC 2017


#41348: Improved caching on WP_Comment_Query
--------------------------------------+------------------------------
 Reporter:  spacedmonkey              |       Owner:  boonebgorges
     Type:  enhancement               |      Status:  closed
 Priority:  normal                    |   Milestone:  Awaiting Review
Component:  General                   |     Version:  3.1
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+------------------------------
Changes (by boonebgorges):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"41190"]:
 {{{
 #!CommitTicketReference repository="" revision="41190"
 Comments: Ignore the 'fields' parameter in the comment query cache.

 `WP_Comment_Query` always queries runs an ID query, and so is unaffected
 by the 'fields' parameter. As such, 'fields' can be ignored when building
 a cache key for the results of the ID query.

 Props spacedmonkey.
 Fixes #41348.
 }}}

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


More information about the wp-trac mailing list