[wp-trac] [WordPress Trac] #26744: Twenty Fourteen: reduce the number of queries when there is no featured post

WordPress Trac noreply at wordpress.org
Tue Jul 15 14:02:40 UTC 2014


#26744: Twenty Fourteen: reduce the number of queries when there is no featured
post
-------------------------------------+---------------------------
 Reporter:  Chouby                   |       Owner:  lancewillett
     Type:  enhancement              |      Status:  closed
 Priority:  normal                   |   Milestone:  4.0
Component:  Bundled Theme            |     Version:  3.8
 Severity:  normal                   |  Resolution:  fixed
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+---------------------------

Comment (by afercia):

 hi Lance, all,
 did you consider to use WP_Query in combination with
 update_post_thumbnail_cache() instead of get_posts? I wonder why
 update_post_thumbnail_cache() is a bit obscure and not documented in the
 Codex, is it still recommended? Read about it in #19949 and looks like a
 great way to reduce queries when there are many thumbnails to get at once.
 With 6 featured posts and 6 thumbnails could save 10 queries.
 However, it would require to change something also in Jetpack.

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


More information about the wp-trac mailing list