Roxen.git / server / base_server / roxen.pike

version» Context lines:

Roxen.git/server/base_server/roxen.pike:1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2004, Roxen IS.   //   // The Roxen WebServer main program.   //   // 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.954 2006/12/21 17:31:29 grubba Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.955 2007/01/10 13:17:43 marty Exp $";      //! @appears roxen   //!   //! The Roxen WebServer main program.      // The argument cache. Used by the image cache.   ArgCache argcache;      // Some headerfiles   #define IN_ROXEN
Roxen.git/server/base_server/roxen.pike:3350: Inside #if defined(ARG_CACHE_DEBUG)
   if (q[0]->data != data) {    werror("Data differs: %O != %O\n",    data, q[0]->data);    }    }   #endif    }       static mapping restore_meta( string id, RequestID rid )    { -  if( meta_cache[ id ] ) +  if( array item = meta_cache[ id ] )    { -  meta_cache[ id ][ 1 ] = time(1); // Update cached atime. -  return meta_cache[ id ][ 0 ]; +  item[ 1 ] = time(1); // Update cached atime. +  return item[ 0 ];    }      #ifdef ARG_CACHE_DEBUG    werror("restore meta %O\n", id );   #endif    array(mapping(string:string)) q =    QUERY("SELECT meta FROM "+name+" WHERE id=%s", id );       string s;    if(!sizeof(q) || !strlen(s = q[0]->meta))