[wp-trac] [WordPress Trac] #32264: wp_enqueue_media() is slow on large sites

WordPress Trac noreply at wordpress.org
Wed May 13 16:07:51 UTC 2015


#32264: wp_enqueue_media() is slow on large sites
-------------------------------------------------+-------------------------
 Reporter:  philipjohn                           |       Owner:
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
Component:  Posts, Post Types                    |  Review
 Severity:  normal                               |     Version:  3.9
 Keywords:  good-first-bug has-patch needs-      |  Resolution:
  testing                                        |     Focuses:
                                                 |  performance
-------------------------------------------------+-------------------------

Comment (by wonderboymusic):

 Related: #31071 - transients here (for `post_mime_type`) just mask the
 fact that the schema doesn't scale in these circumstances

 Also, we shouldn't do `false === ( $var = whatever() )`. Variable
 assignment shouldn't happen in the middle of checking conditions.

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


More information about the wp-trac mailing list