[wp-trac] [WordPress Trac] #23044: adjacent_image_link() needs optimization

WordPress Trac noreply at wordpress.org
Tue May 21 08:03:07 UTC 2013


#23044: adjacent_image_link() needs optimization
-------------------------+------------------
 Reporter:  markjaquith  |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  3.6
Component:  Query        |     Version:  3.5
 Severity:  major        |  Resolution:
 Keywords:               |
-------------------------+------------------

Comment (by westi):

 As well as the major optimisation of an improved query here there is a
 simple optimisation we could use to improve the performance of this on
 sites with a large number of images attached to a post.

 If we switch from get_children to get_posts we can avoid calling
 update_post_cache on every attachment post for every query.

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


More information about the wp-trac mailing list