when we shuffle the LRU list.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2535
d4fa192b-c00b-0410-8231-
f00ffab90ce4
VTAILQ_HEAD(, esi_bit) esibits;
double lru_stamp;
+ double last_use;
/* Prefetch */
struct object *parent;
CHECK_OBJ_NOTNULL(sp->vcl, VCL_CONF_MAGIC);
sp->t_resp = TIM_real();
- if (sp->obj->objhead != NULL)
+ if (sp->obj->objhead != NULL) {
+ sp->obj->last_use = sp->t_resp; /* XXX: locking ? */
EXP_Touch(sp->obj, sp->t_resp);
+ }
RES_BuildHttp(sp);
VCL_deliver_method(sp);
switch (sp->handling) {
CHECK_OBJ_NOTNULL(sp, SESS_MAGIC);
CHECK_OBJ_NOTNULL(sp->obj, OBJECT_MAGIC); /* XXX */
- return (TIM_real() - sp->obj->lru_stamp);
+ return (TIM_real() - sp->obj->last_use);
}
int