[wp-trac] [WordPress Trac] #10964: Improving query_posts performance

WordPress Trac wp-trac at lists.automattic.com
Thu Oct 28 11:45:04 UTC 2010

#10964: Improving query_posts performance
 Reporter:  buch0090     |       Owner:                
     Type:  enhancement  |      Status:  new           
 Priority:  normal       |   Milestone:  Future Release
Component:  Performance  |     Version:  2.8.4         
 Severity:  normal       |    Keywords:  needs-refresh 

Comment(by rowanbeentje):

 Replying to [comment:54 nacin]:
 > I don't see why we're setting $quick_blah to $blah, then passing both
 through the same filters... Why aren't we passing through the filters
 *once*, then duplicating the variables?
 I believe it's so filters can apply different behaviour to quick and full
 - note the extra argument being passed to the filters.

 I have no use for this myself, but I can envisage some potential uses for
 filters who want to only apply themselves to the full version to avoid the
 speed hit on counts where results wouldn't be used anyway.

Ticket URL: <http://core.trac.wordpress.org/ticket/10964#comment:55>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list