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.968 2009/12/01 16:43:40 grubba Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.969 2009/12/01 18:05:32 grubba 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:3697:    // separate flag.    RAISE_CACHE(INITIAL_CACHEABLE);   #ifndef ENABLE_NEW_ARGCACHE    NO_PROTO_CACHE();   #endif    return res;    }       mapping metadata( array|string|mapping data,    RequestID id, -  int|void nodraw ) +  int|void nodraw, +  int|void timeout )    //! Returns a mapping of image metadata for an image generated from    //! the data given (as sent to @[store()]). If a non-zero    //! @[nodraw] parameter is given and the image was not in the cache,    //! it will not be rendered on the fly to get the correct data. -  +  //! +  //! @param timeout +  //! The @[timeout] is sent unmodified to @[store()].    { -  string na = store( data,id ); +  string na = store( data, id, timeout );    mapping res;   #ifdef ARG_CACHE_DEBUG    werror("meta %O\n", na );   #endif    if(! (res = restore_meta( na,id )) )    {    if(nodraw)    return 0;    draw( na, id );    return restore_meta( na,id );