how to set how long varnish will cache

Bjørn Ruberg bjorn at ruberg.no
Wed Feb 15 11:04:33 CET 2012


On 15. feb. 2012 10:35, Jewel Nuruddin wrote:
> Hello,
>
> Sorry for the basic question!
> How can I set that my object will be cached for 5 minutes in varnish?

The Varnish documentation is quite nice, and since you are asking a lot 
of basic questions I recommend that you spend some time with it.

The answer to your question can be found here (as well as elsewhere in 
the docs):
* https://www.varnish-cache.org/docs/3.0/tutorial/vcl.html
* 
https://www.varnish-cache.org/docs/3.0/tutorial/increasing_your_hitrate.html

-- 
Bjørn




More information about the varnish-misc mailing list