deliciousbrains / wp-image-processing-queue

Resize WordPress images in the background
203 stars 18 forks source link

Multiple Queue Runs Required to generate all image sizes for the same attachment #17

Open philbirnie opened 6 years ago

philbirnie commented 6 years ago

For example, if I have:

ipq_get_theme_image_url(SOME_IMAGE_ATTCH_ID, [ 1280, 630, true ] )

followed by:

ipq_get_theme_image_url(SOME_IMAGE_ATTCH_ID, [ 2560, 1260, true ] )

The first call will be successfully added as a job; however the second one will not process until the first one is cleared (thereby unlocking the attachment's post)

Suggestion

Ideally there would only be one lock per size, per attachment not just per attachment