Roxen.git / server / base_server / roxen.pike

version» Context lines:

Roxen.git/server/base_server/roxen.pike:1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2004, Roxen IS.   //   // The Roxen WebServer main program.   //   // Per Hedbor, Henrik Grubbström, Pontus Hagland, David Hedbor and others.   // ABS and suicide systems contributed freely by Francesco Chemolli    - constant cvs_version="$Id: roxen.pike,v 1.966 2009/11/26 15:36:52 grubba Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.967 2009/11/26 15:56:30 wellhard Exp $";      //! @appears roxen   //!   //! The Roxen WebServer main program.      // The argument cache. Used by the image cache.   ArgCache argcache;      // Some headerfiles   #define IN_ROXEN
Roxen.git/server/base_server/roxen.pike:4186:    // setup with a shared database.    if( !has_value((plugins->is_functional-({0}))(), 1) )    {    int cursor;    array(string) ids;    do {    array(mapping(string:string)) entries;    if(from_time)    // Only replicate entries accessed during the prefetch crawling.    entries = -  (array(string)) +     QUERY( "SELECT id, timeout from "+name+"2 "    " WHERE atime >= FROM_UNIXTIME(%d) "    " LIMIT %d, %d", from_time, cursor, FETCH_ROWS);    else    // Make sure _every_ entry is replicated when a dump is created.    entries = -  (array(string)) +     QUERY( "SELECT id, timeout from "+name+"2 "    " LIMIT %d, %d", cursor, FETCH_ROWS);       ids = entries->id;    array(string) timeouts = entries->timeout;    cursor += FETCH_ROWS;       foreach(ids; int i; string id) {    dwerror("ArgCache.write_dump(): %O\n", id);