Roxen.git / server / modules / tags / insert_cached_href.pike

version» Context lines:

Roxen.git/server/modules/tags/insert_cached_href.pike:1:   // This is a roxen module. Copyright © 2000 - 2004, Roxen IS.   //      #include <module.h>   inherit "module";      //<locale-token project="mod_insert_cached_href">LOCALE</locale-token>   #define LOCALE(X,Y) _DEF_LOCALE("mod_insert_cached_href",X,Y)    - constant cvs_version = "$Id: insert_cached_href.pike,v 1.13 2006/06/01 13:59:44 jonasw Exp $"; + constant cvs_version = "$Id: insert_cached_href.pike,v 1.14 2006/07/05 07:38:08 jonasw Exp $";      constant thread_safe = 1;   constant module_type = MODULE_TAG;   LocaleString module_name = LOCALE(0, "Tags: Insert cached href");   LocaleString module_doc = LOCALE(0, "This module contains the RXML tag \"insert "    "cached-href\". Useful when implementing e.g."    " RSS syndication.");      #if DEBUG_INSERT_CACHED_HREF   #define DWRITE(x) report_debug("INSERT_CACHED_HREF: " + x + "\n")
Roxen.git/server/modules/tags/insert_cached_href.pike:241:    }       public void update_db() {    DWRITE(sprintf("########### update_db(): Called every %d seconds ##########"    , get_time_in_seconds(query("update-interval"))));       foreach(initiated, HTTPClient client) {    DWRITE("STILL initiated (should be empty!!!!!): " + (string)client->url);    }    + #ifdef OFFLINE +  // Don't alter entries when running server without network connections. +  return; + #endif +     remove_old_entrys();       if (no_requests()) {    DWRITE("There are no requests, returning from update_db()");    return;    }       array(mapping(string:mixed)) to_fetch = urls_to_fetch();       foreach(to_fetch, mapping next) {