WordPress.org

Ready to get started?Download WordPress

Forums

W3 Total Cache
[resolved] Amazon CloudFront, Dreamhost, W3TotalCache with CDN - almost there! (24 posts)

  1. Catherine
    Member
    Posted 4 years ago #

    Hi there-

    I've been troubleshooting decreasing my site load times all day - decided to use Amazon CloudFront with Dreamhost web hosting and W3TotalCache pluginusing CDN - I feel like I'm almost there after 10+ long hours of work!

    The remaining issues:
    1) My favicon appears on the admin side of WordPress and not on the front end (I'm using the Favicons by Ioane plugin) and the WordPress favicon is there instead
    2) the BP pages still load VERY slowly.
    3) the images on this page are missing: http://www.catswebweave.com/design-portfolio/ and I've checked to make sure they are in the cloudfront and they are.
    4) I managed to install memcached on my Dreamhost VPS, though when I do the compatibility check, it says it's not installed.

    The only W3Total Cache feature I am using is the CDN.

    Any clues for me?

    Thanks,
    WebWeaver
    http://catswebweave.com

  2. Catherine
    Member
    Posted 4 years ago #

    I've got my favicon back - turns out there were more files to upload to the CloudFront.

    Issues 2,3,4 are still in play, however.
    Thanks.

  3. Frederick Townes
    Member
    Plugin Author

    Posted 4 years ago #

    There are too many options in W3TC for me to get you on track without knowing your settings. One thing I know for sure is that you do not need memcached for your site. Please submit a bug submission report from the support tab of the plugin.

  4. Catherine
    Member
    Posted 4 years ago #

    Ok will do if needed.

    I got Memcached installed anyway.

    Thanks.

  5. Frederick Townes
    Member
    Plugin Author

    Posted 4 years ago #

    You're welcome.

  6. spyworld
    Member
    Posted 4 years ago #

    Download Amazon S3 Firefox Organizer(S3Fox) change your bucket permission and apply bucket sub-directory permission.

    I mostly recommend to use APC. Memcached used for multi-server.

  7. blau
    Member
    Posted 4 years ago #

    I use a DH VPS too. You can enable Xcache on the DH Panel, anc configure W3TC to use it for pages, object and db cache.

    Synchronizing static files to the CDN is very simple if you do it via W3TC. If you move files othewise (I use s3cmd) be sure to set ACP public on all the files.

    For example, in http://www.catswebweave.com/design-portfolio/ the image for "Dr. Miller blog" is not publicly accessible. Either it's not on Cloudfront, or has been set as ACL private:

    http://d3s2cq8a6u4i7f.cloudfront.net/wp-content/uploads/2009/08/Picture-25.png

    <?xml version="1.0" encoding="UTF-8"?>
    <Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>4FEBC9DA7C083081</RequestId><HostId>qo6IJ/5vxq1vN9e75V0axJsk5UN4R4rO02EdsxCeaI/LgOAKYpw3aguGA40Uoa4q</HostId></Error>
  8. Frederick Townes
    Member
    Plugin Author

    Posted 4 years ago #

    @CatScholz74 any other concerns?

  9. jelavich
    Member
    Posted 4 years ago #

    Is there a way that W3Cache automatically upload files to the CDN when new posts are created? Or are we needing to use the S3 plugin as well to handle that?

    That seems to be our sticking point, but our wordpress theme creates thumbnails caches that never seem to get uploaded.

  10. blau
    Member
    Posted 4 years ago #

    jelavich: it seems that yes, new medialibrary files are uploaded to the CDN;
    but theme-created thumbnails seem not to be managed by the plugin, instead are linked from the original site. At least this is what happens with Thesis theme.

    For instance, the teaser thumbnails in this page are from the original site, not from CDN:

    http://www.alfabeta2.it/author/andrea-inglese/

    using wp 2.9.2 W3TC 0.9.1.1 and Thesis 1.7

  11. CatWebWeaver
    Member
    Posted 4 years ago #

    Thanks @blau and @fredericktownes (plugin dev)- I thought I had changed the ACP (file permissions) to read-only for all users. Guess not!

    So by default when the files are uploaded to the CloudFront, the permissions are automatically set for all users to be "none" and that needs to be changed to "Read Only" in order for this to work properly.

    I added this permissions information to my blog post here:
    http://www.catswebweave.com/load-wordpress-fast-with-dreamhost-amazon-cloudfront-and-w3total-cache-plugin/

    I am still having trouble using the Minify feature of W3 Total Cache - getting an error message saying files are unavailable. Support at BuddyDress.com suggested I turn off minification.

    Is it redundant to use the CDN and the minify features in W3 Total Cache?

    Thanks,
    WebWeaver

  12. efikim
    Member
    Posted 4 years ago #

    The minify and CDN features are aimed at solving different problems

    minify: reduce the number of files that need to be loaded (by combining multiple files of the same type), and reduce the total size of the files
    (by removing comments and unnecessary spaces etc.)

    CDN: deliver the files that are required more efficiently

    so using both does make sense and should in the end result in greater gains than either alone.

  13. jelavich
    Member
    Posted 4 years ago #

    @blau: Thanks for the note, but it seems like the antisnews theme will generate the thumbnails but w3tcache seems to automagically inserts the cdn name into the url. I am guessing because it attempts to do that for all png files. I was hoping the "sync files" option I see in the latest dev version of w3tcache would fix that, but the thumbnail directory is quite large (20K images) and syncing has to be painful (I know it is using the plugin's upload link). I know with the stock WP theme(s) it all works flawlessly.

    efkim is correct on the minify vs. cdn options. It's a very odd bit of esoterica. Frederick has done an admirable job in his FAQs but could use some tweaking. Though good blogging examples are win to me.

  14. blau
    Member
    Posted 4 years ago #

    jelavich: have you tried putting the theme-generated thumbnail directory in your CDN custom files, uploading custom files, and setting CDN auto-upload of modified files?

  15. jelavich
    Member
    Posted 4 years ago #

    blau: Adding the directory was one of the first things I did. The new version has the auto-upload option, and I set that to 60 seconds. However, the problem seems to be the thumbnails directory contains close to 30K images, and clicking on "upload custom files to CDN" process takes close to 4 hours. We rarely have that big of a gap in posting time to process that directory.

    I know when I attempted to flip the CDN options on, and created a quick post to see what happens to the thumbnails, I could not tell if the CDN auto-upload actually happened, and after 2 hours the thumbnail had not appeared. I need to dig more it seems.

  16. blau
    Member
    Posted 4 years ago #

    jelavich: if you have 30000 images perhaps you could set up a cron job synching only the latest images via s3cmd or other tools.

  17. Frederick Townes
    Member
    Plugin Author

    Posted 4 years ago #

    Is there a way that W3Cache automatically upload files to the CDN when new posts are created? Or are we needing to use the S3 plugin as well to handle that?

    That already happens unless there are too many unsuccessful/failed transfers in the queue. Check using the tool on the CDN settings tab.

    theme-created thumbnails seem not to be managed by the plugin, instead are linked from the original site. At least this is what happens with Thesis theme.

    Paths to such files need to be adding to custom file field on the CDN settings tab and then exported if using an origin push CDN. Save settings and empty the page cache.

    Is it redundant to use the CDN and the minify features in W3 Total Cache?

    No. If you're still having issues, submit a bug submission form from the support tab of the plugin.

  18. CatWebWeaver
    Member
    Posted 4 years ago #

    thanks! I have disabled the Minify feature until I can spend the time going through the documentation to configure it correctly. I have found the using the Help wizard still leaves me with an error message, so I need to do some more learning.

    @Frederick - W3 Total Cache rocks!

    -WebWeaver

  19. Frederick Townes
    Member
    Plugin Author

    Posted 4 years ago #

    There's a bug fix in the help wizard that will be sorted in the next release. Post any details about the error you found if you don't mind.

  20. Catherine
    Member
    Posted 4 years ago #

    glad to hear it, @Frederick - looking forward to the next release.

  21. Frederick Townes
    Member
    Plugin Author

    Posted 4 years ago #

    If you like you can obtain the fix by installing the development version of the plugin.

  22. CatWebWeaver
    Member
    Posted 4 years ago #

    Thanks @Frederick - I've already got the dev version.

  23. Frederick Townes
    Member
    Plugin Author

    Posted 4 years ago #

    Ok.

  24. desinet1
    Member
    Posted 3 years ago #

    @Fredrick: please refer your comment above (http://wordpress.org/support/topic/plugin-w3-total-cache-amazon-cloudfront-dreamhost-w3totalcache-with-cdn-almost-there?replies=23#post-1627928)

    That already happens unless there are too many unsuccessful/failed transfers in the queue. Check using the tool on the CDN settings tab.

    I somehow missed this checkmark on the option "Enable changed files auto-upload" on CDN page.

    After I published a new post, I uploaded all media files again. But I find that the image contained in the newly published post is being served from my own web server. Rest of the images and everything else is being served from the Amazon CDN correctly.

    Do not know what I am missing here.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic