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.605 2006/02/23 12:26:31 jonasw Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.606 2006/04/20 11:49:19 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:343:    while( (current_size > max_size) && (n++<10))    clear_some_cache();    }       array(string|mapping(string:mixed)) get(string url, RequestID id)    {    array(string|mapping(string:mixed))|string|    function(string, RequestID:string) res;    string key = url;    while(1) { +  id->misc->protcache_cost++;    if (arrayp(res = cache[key])) {    hits++;    return [array(string|mapping(string:mixed))]res;    }    if (!res) {    misses++;    return UNDEFINED;    }       string key_frag;
Roxen.git/server/base_server/configuration.pike:4072:   $user_agent -- The header 'User-Agent' from the request, or '-'.   $user_agent_raw -- Same, but spaces in the name are not encoded to %20.   $user -- the name of the auth user used, if any   $user_id -- A unique user ID, if cookies are supported,    by the client, otherwise '0'   $cache-status -- A comma separated list of words (containing no    whitespace) that describes which cache(s) the page    was delivered from:    protcache -- The low-level cache in the HTTP    protocol module. +  protstore -- The page got stored in the low-level +  cache in the HTTP protocol module.    xsltcache -- The XSLT cache.    pcoderam -- RXML parse tree RAM cache.    pcodedisk -- RXML parse tree persistent cache.    cachetag -- No RXML &lt;cache&gt; tag misses. -  nocache -- No hit in any known cache. +  nocache -- No hit in any known cache, and not +  added to the HTTP protocol cache. + $protcache-cost -- The lookup depth in the HTTP protocol module +  low-level cache.   </pre>"), 0, lambda(){ return !query("Log");});       // FIXME: Mention it is relative to getcwd(). Can not be localized in pike 7.0.    defvar("LogFile", "$LOGDIR/"+Roxen.short_name(name)+"/Log",    DLOCALE(30, "Logging: Log file"), TYPE_FILE,    DLOCALE(31, "The log file. "    ""    "A file name. Some substitutions will be done:"    "<pre>"    "%y Year (e.g. '1997')\n"