Skip to content

Alter HTML / No conversion mode only, problems and slow with s3 #615

@magnyld

Description

@magnyld

Hi

I just moved my storage to S3 and handles my webp conversion in a lambda function through cloudfront.

I still use the WebP Express for the Alter HTML part. The problem is that the function uses the "realpath" and a lot of "file_exists".

The file exists makes the site super slow and in my case I am not storing the webp files accessible through wordpress.

realpath dont work with streamwrappers so it will fail and return empty string in PathHelper::getRelDir.

The plugin works as expected for my use case when removing the realpath calls and the file exists. I could create a pull request with a setting for this use case if its interesting.

Is there a plan to use the Alter HTML without touching the files itself?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions