Branch: Tag:

2001-09-06

2001-09-06 09:47:11 by Per Hedbor <ph@opera.com>

Optimized

Rev: server/base_server/roxen.pike:1.732

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.731 2001/09/05 16:43:24 per Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.732 2001/09/06 09:47:11 per Exp $";      // The argument cache. Used by the image cache.   ArgCache argcache;
2675:    array(mapping(string:string)) q =    QUERY("SELECT meta FROM "+name+" WHERE id=%s", id );    -  if(!sizeof(q) || !strlen(q[0]->meta)) +  string s; +  +  if(!sizeof(q) || !strlen(s = q[0]->meta))    return 0;       QUERY("UPDATE "+name+" SET atime=UNIX_TIMESTAMP() WHERE id=%s",id );    -  string s = q[0]->meta; +     mapping m;    if (catch (m = decode_value (s)))    {