[wp-trac] [WordPress Trac] #57296: Force split queries in WP_Query in object caching is enabled.

WordPress Trac noreply at wordpress.org
Fri Sep 15 16:38:54 UTC 2023


#57296: Force split queries in WP_Query in object caching is enabled.
-------------------------------------------------+-------------------------
 Reporter:  spacedmonkey                         |       Owner:
                                                 |  spacedmonkey
     Type:  enhancement                          |      Status:  closed
 Priority:  normal                               |   Milestone:  6.4
Component:  Query                                |     Version:  3.0
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests needs-      |     Focuses:
  testing needs-dev-note add-to-field-guide      |  performance
-------------------------------------------------+-------------------------

Comment (by spacedmonkey):

 @tillkruess Do you mind creating another ticket for this issue?

 I am still not sure I understand the issue related to this commit.
 `split_the_query` filter has existed since WP 3.4. This change only forces
 split queries if the site is running object caching. But most queries were
 already split, as the have a limit on them. This only changes if query is
 run on a site with object cache and not limit is set.

 I agree this needs a dev note and some developer education.

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


More information about the wp-trac mailing list