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 Etel Sverdlov
Varnish is an HTTP accelerator and a useful tool for speeding up a server, especially during a times when there is high traffic to a site. It works by redirecting visitors to static pages whenever possible and only drawing on the virtual private server itself if there is a need for an active process. This tutorial covers setting up Varnish with Apache on Ubuntu 12.04.
Submit an Answer