• Resolved RachelNabors

    (@rachelnabors)


    I’m setting up W3 Total Cache to use Amazon Cloudfront, and when I upload my CSS files, nothing changes, no matter how many times I purge the cache or turn minifying on and off.

    I wonder if I should try the “CDN Purge Tool” found in the CDN section under General. It’s set up for individual files, and I’d tinker with it, but I’m afraid it might permanently remove something from the CDN.

    Has anyone else used this? What’s it for? Can’t find anything on it on Google.

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

Viewing 1 replies (of 1 total)
  • From what I see the “CDN Purge Tool” is able to send an Invalidation request to Cloudfront which is what is needed if you want to more quickly refresh or remove a file from its cache. Though it will take 5-15min to process.

    The other purging options of the W3TC cache is basically local on your server for page-cache and such and that’s not going to affect what is cached by Cloudfront.

    Cloudfront is communicating with your S3 bucket and caching files out on its edge servers. It will only re-check for a changed file based on the expire-header if set otherwise 24hrs. If you update a file on S3 then based on the expire-header Cloudfront will check for an updated file. The default in W3TC is to set this pretty high – like 36days – for css and js files. If you plan to make a lot of changes I’d set this value low, I think the min for Cloudfront is 1hr (3600sec)

    Another option is to use versioning to basically rename your files that you need re-cached with Cloudfront. There had been some mention of W3TC using different names on the minified files but…I don’t think that is happening.

    As of now you still can’t use the AWS Management Console to issue an Invalidation request so having this feature in W3TC will be helpful.

    Note the Invalidation requests are free for the first 1000/mo after that is 1/2cent per file.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: W3 Total Cache] CDN Purge Tool? How to use it?’ is closed to new replies.