[wp-trac] [WordPress Trac] #21961: disable 2 times crop for super-faster upload

WordPress Trac wp-trac at lists.automattic.com
Sat Sep 22 01:55:01 UTC 2012


#21961: disable 2 times crop for super-faster upload
-------------------------+------------------------------
 Reporter:  alexvorn2    |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Upload       |     Version:  3.4.2
 Severity:  normal       |  Resolution:
 Keywords:  2nd-opinion  |
-------------------------+------------------------------
Changes (by scribu):

 * type:  defect (bug) => enhancement


Comment:

 Here's one scenario where having intermediate image sizes generated "on
 the fly" would be bad:

 Say you have a moderately busy homepage (tens of hits per second), where
 you display a 'medium' image for each recent post. You upload a large
 image for a post and publish the post.

 The first user hits the home page; the 'medium' image for the new post
 isn't there, so WP sets out to generate it.

 Assuming it takes 2-3 seconds to do that, there will already be tens of
 other WP instances trying to generate the same image.

 Server runs out of memory and starts refusing connections or just dies.

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


More information about the wp-trac mailing list