Dear,
We are experiencing very slow image upload speeds on both profile and listing images, we’re on a VPS with 6 cores, 8GB of ram and a NVMe ssd and the website is not that big yet.
We’ve looked over all our server settings and they appear to be correct for our situation, but whenever we upload an 1MB image ( which is not that big) it takes almost 15 - 20 seconds before it’s processed. The thing is we do see the image already uploaded in the media library, while the front-end is still loading 10+ seconds. Also in the wordpress back-end the same file is uploaded within 3 seconds.
I’ve added some debug statement to the upload attachement function and found out the following:
[20-Nov-2024 21:29:55 UTC] [Timing] Start upload_attachment.
[20-Nov-2024 21:29:55 UTC] [Timing] Parent model created: 0.00078988075256348 seconds
[20-Nov-2024 21:29:55 UTC] [Timing] Parent object fetched: 0.0023097991943359 seconds
[20-Nov-2024 21:29:55 UTC] [Timing] Parent field fetched: 0.0024478435516357 seconds
[20-Nov-2024 21:29:55 UTC] [Timing] Starting file upload: 0.019221782684326 seconds
[20-Nov-2024 21:30:31 UTC] [Timing] File uploaded: 36.21294093132 seconds
[20-Nov-2024 21:30:31 UTC] [Timing] Attachment processed and saved: 36.23185300827 seconds
What could possibly explain the high upload time and what can we do to make it better?
We also have the problem that if the user uploads for example an 15MB image and the limit is 8MB we get an unauthorized error instead of just the max file size? I’ve also seen this in the demo shop happening, but this way the user has no feedback on what is going wrong.
Thank you in advance!