Branch: Tag:

2007-09-04

2007-09-04 12:59:36 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Decreased the protocol cache refresh grace period
from cachetime/2 to 3*cachetime/4 - 5 seconds.
This should reduce the amount of unneeded refreshes.

Rev: server/protocols/http.pike:1.528

2:   // Modified by Francesco Chemolli to add throttling capabilities.   // Copyright © 1996 - 2004, Roxen IS.    - constant cvs_version = "$Id: http.pike,v 1.527 2007/09/03 16:45:05 grubba Exp $"; + constant cvs_version = "$Id: http.pike,v 1.528 2007/09/04 12:59:36 grubba Exp $";   // #define REQUEST_DEBUG   #define MAGIC_ERROR   
2109: Inside #if defined(RAM_CACHE)
   "mtime":(file->stat &&    file->stat[ST_MTIME]),    "rf":realfile, -  "refresh":predef::time(1) + misc->cacheable/2, +  "refresh":predef::time(1) + +  5 + 3*misc->cacheable/4,    ]),    misc->cacheable, this_object());    file = ([