misc questions
Poul-Henning Kamp
phk at phk.freebsd.dk
Sat Jul 10 11:04:37 CEST 2010
In message <4C38361C.9040105 at d6.com>, Chris Hecker writes:
>
>1. Is there a way to set the default ttl inside the vcl?
No, only as a parameter. You can however, set the ttl of any
object you want.
>2. What's the recommended way of "disabling" varnish quickly for
>testing? Can I just return pass at the top of recv
Yes.
>3. If I've got mediawiki and wordpress (my two backends) purging
>correctly on edit, what should the ttl be on the content pages? It
>seems like I should set it to something high, right? mediawiki sets it
>to 18000s, but wp doesn't set it as far as I can tell from the log.
As I mentioned above, you can set the ttl in your VCL file, it all
depends on your traffic pattern really, but of course the longer
you cache, the better your hitrate. The question is how much longer
and how much better.
>4. If I've got varnish working in front of wordpress, I assume I don't
>need any of the caching plugins or any other hacks like those, right?
Well, depends if you have many private pages that varnish decides to
"pass" etc.
>PS. I'm on 32 bit CentOS 5.5 and varnish 2.0.6, and varnish seems to be
>working fine so far.
If you expect high loads, 32 bit may cramp your style.
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
More information about the varnish-misc
mailing list