[wp-trac] [WordPress Trac] #18536: Improve performance of WP_Query core

WordPress Trac wp-trac at lists.automattic.com
Wed Sep 14 18:47:33 UTC 2011


#18536: Improve performance of WP_Query core
-----------------------------+------------------------------
 Reporter:  cheald           |       Owner:
     Type:  enhancement      |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Query            |     Version:  3.2.1
 Severity:  normal           |  Resolution:
 Keywords:  has-patch close  |
-----------------------------+------------------------------

Comment (by ryan):

 Some caching plugins return an empty query string from the posts_request
 filter.  With the current query code, this causes get_results() to return
 null and skip the query.  The plugin then fills in the posts array by
 fetching the posts from cache and returning them through the
 posts_results filter.  This fails with 18536.diff applied.  The get_col()
 call in the expand_ids block receives an empty query string.  get_col()
 uses last_result when an empty query is passed. This results in some
 totally whacky stuff ending up in the SELECT * query in the expand IDs
 block.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18536#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list