-
Notifications
You must be signed in to change notification settings - Fork 385
Description
Is your feature request related to a problem? Please describe.
When a user uploads a pretty large image that takes some time to generate a thumbnail for and said user keeps on hitting f5 on the page because the image is not loading (it is being generated) multiple processes try to generate the thumbnail, one for each reload. Because the image processing on its own can eat up RAM quite well you can run into the issue that you php-fpm process gets killed to recover memory, because otherwise the server would crash
Describe the solution you'd like
Add the option to use the Symfony lock component so each image can only be processed by exactly one process at a time
Describe alternatives you've considered
I though about triggering the generation on uploading the image and that might help, but it doesn't really solve the issue
Additional context
https://github.com/MbinOrg/mbin