Branch: Tag:

2001-09-05

2001-09-05 14:28:00 by Per Hedbor <ph@opera.com>

Fake a mtime (in 1998) for imagecache files

Rev: server/base_server/roxen.pike:1.728

6:   // Per Hedbor, Henrik Grubbström, Pontus Hagland, David Hedbor and others.   // ABS and suicide systems contributed freely by Francesco Chemolli    - constant cvs_version="$Id: roxen.pike,v 1.727 2001/09/05 14:14:39 per Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.728 2001/09/05 14:28:00 per Exp $";      // The argument cache. Used by the image cache.   ArgCache argcache;
2794: Inside #if defined(ARG_CACHE_DEBUG)
  #ifdef ARG_CACHE_DEBUG    werror("restore %O\n", id );   #endif -  q = QUERY( "SELECT meta,data FROM "+name+" WHERE id=%s",id); +  q = QUERY( "SELECT meta,atime,data FROM "+name+" WHERE id=%s",id);    if( sizeof(q) )    {    if( sizeof(q[0]->data) )
2870:    if( !(res = restore( na,id )) )    error("Draw callback did not generate any data\n");    } +  res->stat = ({ 0, 0, 900000000, 0, 0, 0, 0, 0 });    id->misc->cacheable = INITIAL_CACHEABLE;    return res;    }