[Varnish] #785: vcl.load and vcl.discard

Varnish varnish-bugs at varnish-cache.org
Tue Sep 28 11:31:39 CEST 2010


#785: vcl.load and vcl.discard
------------------------------------------+---------------------------------
 Reporter:  freshteapot                   |        Type:  defect
   Status:  new                           |    Priority:  normal
Milestone:  After Varnish 2.1             |   Component:  build 
  Version:  2.1.3                         |    Severity:  normal
 Keywords:  vcl.load vcl.use vcl.discard  |  
------------------------------------------+---------------------------------
 Hi,

 Running:
 varnishd -V

 varnishd (varnish-2.1.3 SVN )
 Copyright (c) 2006-2009 Linpro AS / Verdens Gang AS


 Loading a config file using.


 {{{
 vcl.load d2 /var/configs/varnish.vcl
 vcl.use d2
 vcl.discard boot
 }}}



 This works as I would expect, removing boot for the list.

 If I now load a new file.

 {{{
 vcl.load d3 /var/configs/varnish.vcl
 vcl.use d3
 vcl.discard d2
 vcl.list
 200 63
 discarded       1 d2
 active          8 d3
 }}}
 I was expecting d2 to have gone, just how boot has been removed.

 If I now add the file again

 {{{
 vcl.load d3 /var/configs/varnish.vcl
 vcl.list
 200 63
 discarded       1 d2
 active          8 d3
 available       0 d2
 }}}
 Here we have to d2.

 It should be noted, I still can use the latest "d2" via vcl.use.
 But the "discarded" note still exists.



 I noted this is similiar to an older ticket which has been closed.
 http://www.varnish-cache.org/trac/ticket/145

-- 
Ticket URL: <http://varnish-cache.org/trac/ticket/785>
Varnish <http://varnish-cache.org/>
The Varnish HTTP Accelerator




More information about the varnish-bugs mailing list