[wp-trac] [WordPress Trac] #57373: WP_Query loading posts twice.

WordPress Trac noreply at wordpress.org
Fri Jan 6 10:34:15 UTC 2023


#57373: WP_Query loading posts twice.
--------------------------+---------------------------
 Reporter:  spacedmonkey  |       Owner:  spacedmonkey
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  6.1.2
Component:  Query         |     Version:  6.1
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:  performance
--------------------------+---------------------------
Changes (by spacedmonkey):

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


Comment:

 In [changeset:"55035" 55035]:
 {{{
 #!CommitTicketReference repository="" revision="55035"
 Query: Stop priming posts twice in `WP_Query`.

 Part revert of [54352]. In cases where queries are not split, then it
 results in priming posts that are already loaded resulting in a
 superfluous database query.

 Props spacedmonkey, flixos90, peterwilsoncc.
 Fixes #57373.
 }}}

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


More information about the wp-trac mailing list