[wp-trac] [WordPress Trac] #43525: Add a method to generate the image subsizes with multiple requests
WordPress Trac
noreply at wordpress.org
Mon Mar 12 10:47:50 UTC 2018
#43525: Add a method to generate the image subsizes with multiple requests
-------------------------+------------------
Reporter: azaozz | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 5.0
Component: Media | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
-------------------------+------------------
Comment (by azaozz):
Thanks @enshrined this looks pretty good.
> it can be a really frustrating issue, especially when themes/plugins
define lots of image sizes.
Yeah, exactly. Most shared servers would have enough resources to generate
WPs default image subsizes, but when themes and plugins start adding more
and more it becomes pretty intensive.
Thinking we'll probably do wp_cron in combination with "self requests" to
trigger it right after an image is uploaded (some smaller or cached sites
may not get the necessary "hits" soon enough). Of courses there will be
some sensible limit on this wp_cron loop. Also if there is an error we
will have to set it on the attachment post (meta) and display in the UI so
the user can retry.
There should also be a way for the user to retry creating just the missing
sizes. We may actually be able to fix this by getting the user more
involved in the process. Adding a check if all files have been created,
outputting an error when not, and a button to try to create the rest.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43525#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list