Hi, I just wanted to ask if you can use both Varnish and Apache Content Caching at the same time, will it be a good combination.
and if you only use on of them, witch on will be a better option.?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

Hi @wayand,

It’s probably best to just stick with one, or the other, and you likely won’t get much better performance by running both, and likely better performance by just running one (because you’d be able to give more of the systems resources to one of them, instead of splitting the resources over two).

Depending on the type of content you’re trying to cache, and your knowledge with each one, would likely suggest the one to run. That said, unless your application is very busy, and you’re just looking for a little boost, you’re probably going to get that from either one, equally.

The good news is that we have documents describing how to setup both!

Varnish: https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-varnish-with-apache-on-ubuntu-12-04–3
Apache Content Cache: https://www.digitalocean.com/community/tutorials/how-to-configure-apache-content-caching-on-ubuntu-14-04

Let us know if you have any further questions!

by Justin Ellingwood
Web caching is a method of improving server performance by allowing commonly requested content to be temporarily stored in a way that allows for faster access. This allows the visitor to access content faster without having to fetch the same data multiple times. By...
Submit an Answer