[Varnish] #341: obj.valid is not recognized as a valid variable

Varnish varnish-bugs at projects.linpro.no
Mon Sep 29 23:34:53 CEST 2008


#341: obj.valid is not recognized as a valid variable
----------------------+-----------------------------------------------------
 Reporter:  marlier   |       Owner:  phk
     Type:  defect    |      Status:  new
 Priority:  normal    |   Milestone:     
Component:  varnishd  |     Version:  2.0
 Severity:  normal    |    Keywords:     
----------------------+-----------------------------------------------------
 My VCL includes the following as part of the vcl_fetch definition:

         if (obj.status == 404) {
                 restart;
         }
         if (!obj.valid) {
                 error;
         }
         if (!obj.cacheable) {
                 pass;
         }


 However, when attempting to start varnishd using this configuration, I
 receive the following error:

 Unknown variable 'obj.valid'
 At: (/etc/varnish/default.vcl Line 98 Pos 14)
         if (!obj.valid) {
 -------------#########---

 VCL compilation failed


 obj.valid is still shown in the man page as a legitimate variable.

-- 
Ticket URL: <http://varnish.projects.linpro.no/ticket/341>
Varnish <http://varnish.projects.linpro.no/>
The Varnish HTTP Accelerator


More information about the varnish-bugs mailing list