[Varnish] #956: Value of obj.ttl in vcl_hit

Varnish varnish-bugs at varnish-cache.org
Wed Aug 10 09:56:58 CEST 2011


#956: Value of obj.ttl in vcl_hit
----------------------+-----------------------------------------------------
 Reporter:  pmialon   |        Owner:  martin
     Type:  defect    |       Status:  closed
 Priority:  normal    |    Milestone:        
Component:  varnishd  |      Version:  3.0.0 
 Severity:  normal    |   Resolution:  fixed 
 Keywords:            |  
----------------------+-----------------------------------------------------
Changes (by Poul-Henning Kamp <phk@…>):

  * status:  new => closed
  * resolution:  => fixed


Comment:

 (In [c1a6faaf55ac0d5c4fee8bbc0b9281f5c1118592]) Move 'age' and 'entered'
 into struct exp.

 Simplify the move from sp->wrk to sp->obj accordingly.

 Add a diagram that explains how ttl, grace & keep related to
 each other.

 Fix VCL's obj.ttl variable to appear to be relative to "now" rather
 than obj->entered. (#956)

 Also log SLT_TTL when we change obj.grace and obj.keep

 Make SLT_TTL always have the same format:
         XID
         "RFC" or "VCL"
         obj.ttl
         obj.grace
         obj.keep
         obj.entered
         obj.age
 In addition "RFC" has:
         obj.date
         obj.expires
         obj.max-age

 Fixes   #956

 Thanks to:      DocWilco

-- 
Ticket URL: </ticket/956#comment:4>
Varnish <http://varnish-cache.org/>
The Varnish HTTP Accelerator




More information about the varnish-bugs mailing list