Roxen.git / server / base_server / configuration.pike

version» Context lines:

Roxen.git/server/base_server/configuration.pike:429:    low_expire_entry(key);    }    else    SIMPLE_TRACE_LEAVE ("");       current_size += entry_size;    cache[key] = ({ data, meta });       // Only the actual cache entry is expired.    // FIXME: This could lead to lots and lots of call outs.. :P -  meta->co_handle = call_out(really_low_expire_entry, expire, key); +  meta->co_handle = +  (expire < CACHE_INDEF_REL_LIMIT) && +  call_out(really_low_expire_entry, expire, key);    int n;    while( (current_size > max_size) && (n++<10))    clear_some_cache();    }       array(string|mapping(string:mixed)) get(string url, RequestID id)    {    SIMPLE_TRACE_ENTER (this, "Looking up entry for %O in the protocol cache",    url);   
Roxen.git/server/base_server/configuration.pike:2302: Inside #if undefined(NO_INTERNAL_HACK) and #if ROXEN_COMPAT <= 2.1
   (file[0] == '/') &&    sscanf(file, "%*s/internal-%s-%[^/]", type, loc) == 3   #else    sscanf(file, "/internal-%s-%[^/]", type, loc) == 2   #endif    ) {    switch(type) {    case "roxen":    // Mark all /internal-roxen-* as cacheable even though the user might be    // authenticated (which normally disables protocol-level caching). -  RAISE_CACHE(60 * 60 * 24 * 365); // 1 year +  CACHE_INDEFINITELY();    PROTO_CACHE();    id->set_response_header("Cache-Control", "public, max-age=31536000");       TRACE_LEAVE("Magic internal roxen image");    if(loc=="unit" || loc=="pixel-of-destiny")    {    TIMER_END(internal_magic);    return (["data":"GIF89a\1\0\1\0\200ÿ\0ÀÀÀ\0\0\0!ù\4\1\0\0\0\0,"    "\0\0\0\0\1\0\1\0\0\1\1""2\0;",    "type":"image/gif",