WordPress.org

Forums

W3 Total Cache
Tim Thumb issue when using CDN (3 posts)

  1. dak.le
    Member
    Posted 2 years ago #

    We have a multisite set up on a load balanced EC2 and have our images pulling from an S3 bucket. Image URLs are correctly being rewritten to point to the correct S3 bucket except in cases where we are using Tim Thumb. For Tim Thumb, we are using wp_get_attachment_image() to get the image URL which is returning the URL from the WordPress install and not the S3 bucket.

    Is there a way for to get the S3 URL and pass that to Tim Thumb?

    We've thought about using Regex, but we'd have to set up a check for each Blog ID since each site has it's own S3 bucket.

    http://wordpress.org/extend/plugins/w3-total-cache/

  2. Frederick Townes
    Member
    Plugin Author

    Posted 2 years ago #

    Unfortunately, I don't have specific reactions that you would want to hear except, stop using tim thumb and switch to an origin pull CDN.

  3. dak.le
    Member
    Posted 2 years ago #

    Thanks for the response. We've replaced Tim Thumb with custom thumbnail sizes in as many places as we could, but it is still needed in some of our sliders where the image size is dynamically set based on the number slides used.

    Is there an API or some way to access the W3TC variables for the s3 bucket name that's configured for Amazon S3 origin push? That way I could build the rest of the URL out from the wp_postmeta table before passing it to Tim Thumb.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • W3 Total Cache
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic