I’m looking for a light weight and simple caching solution.
I have no need for heavy duty caching like Varnish as most of the sites I’m building handle fairly low volumes of traffic.
I am keen to get my page load times down as low as possible though, and I need to use a cache as part of that.
I came across Quick Cache pro, which looks like it might suit my needs, and I’ve got it working locally on my dev VM. I need help now to figure out how to use Capistrano to deploy to staging so I can test it.
I need a writable cache directory that would normally go under wp-content.
I also need a file called advanced-cache.php in the same directory.
I’ve created these in my capistrano shared directory on my staging server, and added these to my linked_dirs and linked_files directives in deploy.rb, and now when I deploy I can see the links are there under web/app/. When I try to enable the cache however i get an error:
“Failed to update your /wp-content/advanced-cache.php file. Most likely a permissions error. Please create an empty file here: /wp-content/advanced-cache.php (just an empty PHP file, with nothing in it); give it permissions 644 or higher (perhaps 666). Once you’ve done this, please try again.”
Could this be because the plug-in is ignoring the custom content directory directive in application.php?
Any help gratefully received.
…and er, I forgot to say that if anybody has a better idea of good simple cache plugin that works well with Bedrock, please let me know.
Maybe varnish is not such a bad idea after all…
Not exactly sure about that error but looking at the source it does use
WP_CONTENT constant which is good. That error message just hardcodes
/wp-content/ to make it more confusing.
Most WP caching plugins either rely on complicated hybrid solutions like W3TC or external services like Batcache (with memcached). If you’re going to use another service like Varnish, memcached, etc, I suggest just using Nginx built in proxy cache which is great. It’s basically like Varnish without some more advanced options you won’t need anyway.
There’s some plugins to help manage Nginx cache too:
https://wordpress.org/plugins/nginx-champuru/ and http://rtcamp.com/wordpress-nginx/plugin/
Thanks Scott, I shall check out Nginx.
Seems like all the cool kids are using it these days anyway so it could be time for me to move on from my old friend apache!
Oops, I just assumed
Apache gets a slightly bad rap now but if you were going to go with something like Varnish, I’d just switch to Nginx first since 1 tool is usually easier than 2.
Hi @treb0r I know this topic is old but i’m facing the same dilema of choosing an adequate caching plugin. Would you be kind enough to share your experience? In the end what was the solution you choose and how did it work for U?
Thanks in advance
Hi @262media, there’s been a lot of water under the bridge since this thread!
I’m now using Bedrock-ansible which means I finally gave up using Apache.
I find that out of the box my sites are significantly faster thanks to the included configs.
I’m in the middle of trying to implement the Nginx microcaching solution with batcache as outlined here:
Once I’ve got it working properly I shall let you know.
It seems microcaching makes the most sense as you don’t need worry about using another plugin to flush the cache, etc.