• Resolved coleatkinson1

    (@coleatkinson1)


    Hi, just a few questions about using s3 as a CDN.

    Will W3TC automatically offload newly uploaded media files to S3? Or will I need another plugin to do this? If so, are there any that you could recommend?

    Can I delete all my media files from the server after offloading everything to s3? This is my solution to save disk space on the server.

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @coleatkinson1

    Thank you for reaching out and I am happy to assist you with this.
    Yes, once configured, W3TC will automatically offload files to S3, however, It’s recommended to use the “Only Purge CDN Manually” option in the Performance>CDN>Advanced. This option is added because of the huge bills AWS has for invalidations.
    We don’t remove media files from the server, we only make sure they are uploaded to the CDN and loaded from the CDN. So once media library files were uploaded to the CDN, they are not deleted from the server to save space.
    It’s not recommended to delete the files from the server, simply because you should have a backup if the CDN images break for some reason.
    A better solution for this is to optimize images for the web before uploading them to your server. So instead of unloading an image that is 2MB heavy, once optimized it can be around 150kb
    If you, however, choose to do this and delete the images from the server once loaded to the CDN (And again this is not recommended), you should also enable the option “Use CDN links for the Media Library on admin pages” in Performance>CDN, to ensure that the URLs in the Media library are using the CDN links.

    I hope this answers your question.

    Thanks!

    Thread Starter coleatkinson1

    (@coleatkinson1)

    Thanks for the fast reply!

    I forgot to also ask:

    1. Is there anyway to do a bulk upload of my current Media Library to S3 using W3TC?
    2. If I use a plugin like EWWWW to optimize/resize the images, will this conflict with W3TC and this S3 functionality?

    Thanks!

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @coleatkinson1

    Thank you for your feedback.
    Once the CDN configuration is done, all your images in the media library should be uploaded to the S3.
    Please make sure to check this GH request for more details about the upload and invalidations on AWS.

    As for your other question, no, there should be no issues with this, however, please note that we cannot guarantee what will shape with those images if they are deleted and after optimized with E2WWW.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘amazon s3 and w3tc’ is closed to new replies.