[wp-trac] [WordPress Trac] #10886: WordPress should not unnecessarily query posts at page load

WordPress Trac wp-trac at lists.automattic.com
Fri Oct 2 19:12:01 UTC 2009


#10886: WordPress should not unnecessarily query posts at page load
--------------------------+-------------------------------------------------
 Reporter:  junsuijin     |       Owner:  junsuijin               
     Type:  defect (bug)  |      Status:  new                     
 Priority:  normal        |   Milestone:  2.9                     
Component:  Optimization  |     Version:  2.8.4                   
 Severity:  normal        |    Keywords:  has-patch, needs-testing
--------------------------+-------------------------------------------------

Comment(by junsuijin):

 Building on ryan, westi, and sivel's work/suggestions, this new patch
 seems to further improve page loading times. More testing indicates that
 extra queries are caused by setting the 'wp_main' filter to false when
 site-wide post requests are made later on. This seems a case of
 benefitting the majority over the minority though, since the people that
 find the 'wp_main' filter set to false on a page where they want to
 include something like a site-wide posts widget, can just reset the filter
 to true.

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


More information about the wp-trac mailing list