[Plugin: W3 Total Cache] A few tiny issues and quick fixes
-
Hi there, love the plugin, it’s been really helpful! I’m using WP half as a blog and half as a very dynamic CMS, so it’s been kind of tricky balancing W3TC between the two. So far all is OK, but here are two little manual fixes I made that I thought I’d let you know about.
1: On the non-blog part of my site I use the same Amazon S3 class W3TC uses, which causes problems. To fix it I edited the W3TC S3.php to simply require_once my copy. I don’t know if there’s a way to check if a class is defined or not, but that would be another fix. I actually only mention this because it’s possible another developer might run into this problem, so that’s a workaround.
2: I have an Amazon S3 account with a CNAME going to it. I wanted W3TC to use this new name, but there’s no option for it unless you’re using CloudFront. To fix this, I edited this line:
$domain = sprintf(‘%s.s3.amazonaws.com’, $this->_config[‘bucket’]);
into this:
$domain = sprintf(‘%s’, $this->_config[‘bucket’]);
Though I’ll have to make that change each time I update W3TC. Would it be possible to make that an editable option for Amazon S3 setups too?
Thanks again for the awesome plugin!
- The topic ‘[Plugin: W3 Total Cache] A few tiny issues and quick fixes’ is closed to new replies.