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 - 2004, Roxen IS.   //      // @appears Configuration   //! A site's main configuration    - constant cvs_version = "$Id: configuration.pike,v 1.598 2005/12/05 13:35:49 grubba Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.599 2005/12/05 13:48:52 grubba 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:220:   class DataCache   {    mapping(string:array(string|mapping(string:mixed))) cache = ([]);       int current_size;    int max_size;    int max_file_size;       int hits, misses;    -  // FIXME: We ought to have proper varies support here. -  static int host_in_key; -  void need_host_in_key() -  { -  host_in_key = 1; -  } -  +     void flush()    {   #ifndef RAM_CACHE_NO_RELOAD_FLUSH    current_size = 0;    cache = ([]);   #endif    }       static void low_expire_entry(string key_prefix, array(string) keys)    {