varnishstat not reporting correct values

Celene celene at
Sat Jul 6 21:22:15 CEST 2013

Hi, I have been using varnish to accelerate some of my sites.

Interestingly enough, I added a rule in the VCL to show hits in the
header (below)
if (obj.hits > 0) {
                set resp.http.X-Cache = "HIT";
        } else {
                set resp.http.X-Cache = "MISS";

The headers show up as a hit in my browser, with a cleared cache.

However, the stats in varnishstat never change, even if I put load on
varnish using loadimpact.

Anyone have any idea where I should check first?



More information about the varnish-misc mailing list