humanmade / S3-Uploads

The WordPress Plugin to Store Uploads on Amazon S3
1.95k stars 391 forks source link

Not working as expected with nginx s3 proxy #509

Open dkruchala opened 3 years ago

dkruchala commented 3 years ago

Hi, I'am trying to setup plugin to only upload files to s3. I have nginx s3 proxy. Everything seems to be working properly but there is one issue - high TTFB (which is caused by this plugin) - it still does some work when files are fetched from s3. I'am using S3_UPLOADS_DISABLE_REPLACE_UPLOAD_URL as documentation says. Disabling plugin makes site working properly.

joehoyle commented 3 years ago

Hi @dkruchala,

Most likely you have something on page generation that is trying to read image / attachment files, such as getimagesize etc. My default WordPress should never have to do that on page load, so it might be that you have another plugin or your theme has some bad performance practices that is causing S3 files to be read on every render.