• Resolved ThePhoenixBird

    (@thephoenixbird)


    Hello,

    Im facing some issues with W3 Total Cache configured to use Amazon S3 CDN, while EWWW seems to work properly and reducing the image filesize, the images sent to the CDN are not optimized.

    WP-Uploads version: 919.74 KB (941,818 bytes)
    CDN version: 1,035.29 KB (1,060,133 bytes)
    Original: 1,035.29 KB (1,060,133 bytes)

    I suspect that when uploading the image to the media library, it is sent first to the CDN before being optimized.

    Forcing the purge of the content in the CDN to get the image reuploaded seems to work, yet with this issue present, it would cause that each image is being sent twice to the CDN, thus duplicating the amount of requests per image and the overall cost of the CDN.

    Using

    1. WordPress 4.1
    2. W3 Total Cache 0.9.4.1
    3. EWWW Image Optimizer 2.2.2
    4. Debug: https://pastebin.mozilla.org/8474733

    https://www.ads-software.com/plugins/ewww-image-optimizer/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author nosilver4u

    (@nosilver4u)

    That should not be happening, W3TC should be firing after optimization. I’ll take a look on my dev site.

    Do you mean that images that you Bulk Optimize show this behavior, or that even newly uploaded images do this as well?

    Plugin Author nosilver4u

    (@nosilver4u)

    confirmed it on my test site finally. will see why it’s happening. I’ll have to see how and when W3TC is triggering the upload process.

    Plugin Author nosilver4u

    (@nosilver4u)

    Looks like they run at the default priority level, which means there is no way to optimize the images before W3TC uploads to the CDN. I’ll contact them to see if they can change that function to load a little later.

    Thread Starter ThePhoenixBird

    (@thephoenixbird)

    Any update on this?

    It would be great to use both EWWW+W3TC+CDN efficiently, currently it is no good ??

    Plugin Author nosilver4u

    (@nosilver4u)

    I have not heard any updates from the W3TC team yet, sorry.

    Plugin Author nosilver4u

    (@nosilver4u)

    sent W3TC another message, perhaps they lost the first one. We’ll see what they say.

    Plugin Author nosilver4u

    (@nosilver4u)

    Ok, I got tired of waiting for them to respond, so I’ve implemented a fix of my own. I’ve removed the W3TC filter, and then added my own wrapper as a filter later on that calls the W3TC function after everything has been optimized. You can grab it from dev if you like: https://downloads.www.ads-software.com/plugin/ewww-image-optimizer.zip

    Thread Starter ThePhoenixBird

    (@thephoenixbird)

    Thanks a lot for the effort and time you put on this issue, i will test your fix and report back.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘W3TC Amazon CDN is sending un-optimized images first’ is closed to new replies.