Roxen.git / server / base_server / configuration.pike

version» Context lines:

Roxen.git/server/base_server/configuration.pike:1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2001, Roxen IS.   //      // @appears Configuration   //! A site's main configuration    - constant cvs_version = "$Id: configuration.pike,v 1.497 2002/03/25 13:25:17 mast Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.498 2002/04/15 08:29:19 jonasw Exp $";   #include <module.h>   #include <module_constants.h>   #include <roxen.h>   #include <request_trace.h>   #include <timers.h>      #define CATCH(P,X) do{mixed e;if(e=catch{X;})report_error("While "+P+"\n"+describe_backtrace(e));}while(0)      // --- Locale defines ---   //<locale-token project="roxen_start"> LOC_S </locale-token>
Roxen.git/server/base_server/configuration.pike:217:    {    if( cache[ url ] )    {    current_size -= strlen(cache[url][0]);    m_delete( cache, url );    }    }       void set( string url, string data, mapping meta, int expire )    { -  if( strlen( data ) > max_size ) return; +  if( strlen( data ) > max_file_size ) return;    call_out( expire_entry, expire, url );    current_size += strlen( data );    cache[url] = ({ data, meta });    int n;    while( (current_size > max_size) && (n++<10))    clear_some_cache();    }       array(string|mapping(string:mixed)) get( string url )    {