Roxen.git / server / base_server / configuration.pike

version» Context lines:

Roxen.git/server/base_server/configuration.pike:1:   // A vitual server's main configuration   // Copyright © 1996 - 2000, Roxen IS.    - constant cvs_version = "$Id: configuration.pike,v 1.339 2000/08/15 13:05:28 nilsson Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.340 2000/08/16 02:58:11 per Exp $";   constant is_configuration = 1;   #include <module.h>   #include <module_constants.h>   #include <roxen.h>   #include <request_trace.h>      inherit "basic_defvar";      mapping enabled_modules = ([]);   mapping(string:array(int)) error_log=([]);
Roxen.git/server/base_server/configuration.pike:2085:    if ( !id->misc->common )    id->misc->common = ([]);       fake_id = id->clone_me();       fake_id->misc->common = id->misc->common;    fake_id->misc->internal_get = !not_internal;       s = Roxen.fix_relative (s, id);    -  if(!id->pragma["no-cache"] && !nocache && (!id->auth || !id->auth[0])) { -  cache_key = -  s + "\0" + -  id->request_headers->cookie + "\0" + -  id->request_headers["user-agent"]; -  if(res = cache_lookup("file:"+name, cache_key)) -  return res; -  } + // if(!id->pragma["no-cache"] && !nocache && (!id->auth || !id->auth[0])) { + // cache_key = + // s + "\0" + + // id->request_headers->cookie + "\0" + + // id->request_headers["user-agent"]; + // if(res = cache_lookup("file:"+name, cache_key)) + // return res; + // }       if (fake_id->scan_for_query)    // FIXME: If we're using e.g. ftp this doesn't exist. But the    // right solution might be that clone_me() in an ftp id object    // returns a vanilla (i.e. http) id instead when this function is    // used.    s = fake_id->scan_for_query (s);    fake_id->raw_url=s;    fake_id->not_query=s;   
Roxen.git/server/base_server/configuration.pike:2117:    if(a && a[0]) {    m = a[1];    m->file = a[0];    }    else {    destruct (fake_id);    return 0;    }    }    +  CACHE( fake_id->misc->cacheable );    destruct (fake_id);       if (!mappingp(m) && !objectp(m)) {    report_error("try_get_file(%O, %O, %O, %O): m = %O is not a mapping.\n",    s, id, status, nocache, m);    return 0;    }       if (!(< 0, 200, 201, 202, 203 >)[m->error]) return 0;   
Roxen.git/server/base_server/configuration.pike:2148:    destruct(m->file);    m->file = 0;    }       if(m->raw)    {    res -= "\r";    if(!sscanf(res, "%*s\n\n%s", res))    sscanf(res, "%*s\n%s", res);    } -  if (cache_key) -  cache_set("file:"+name, cache_key, res); + // if (cache_key) + // cache_set("file:"+name, cache_key, res);    return res;   }      int(0..1) is_file(string virt_path, RequestID id)   //! Is `virt_path' a file in our virtual filesystem?   {    return !!stat_file(virt_path, id);   }      array registered_urls = ({});