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

WordPress Trac noreply at wordpress.org
Mon May 11 20:45:22 UTC 2015


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

Comment (by rhurling):

 Wait... the patch before worked...
 Well, now both should work and it's more preference. And now I'm not sure
 why i rewrote it a bit.

 @philipjohn: In my testing both patches prevent the query from being run
 more than once, since the transient value is an empty string for me,
 because I think boolean's get converted.
 Did you test it with an object cache? Maybe that's interfering, because
 the boolean isn't converted to a string or something like that (which
 would mean that only the 2nd patch would work and I didn't write it for
 nothing).

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


More information about the wp-trac mailing list