Roxen.git / server / base_server / global_variables.pike

version» Context lines:

Roxen.git/server/base_server/global_variables.pike:1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2009, Roxen IS. - // $Id: global_variables.pike,v 1.122 2009/11/30 15:20:54 mast Exp $ + // $Id: global_variables.pike,v 1.123 2009/12/05 01:04:00 jonasw Exp $      // #pragma strict_types   #define DEFVAR mixed...:object   #define BDEFVAR mixed...:object      #define IN_ROXEN   #include <module.h>   inherit "read_config";   inherit "basic_defvar";   #include <version.h>
Roxen.git/server/base_server/global_variables.pike:803:    LOCALE(388, "Automatically restart the "    "server according to this schedule.") ) )    ->set_invisibility_check_callback (    lambda(RequestID id, Variable.Variable f)    {return !query("suicide_engage");}    );      #ifdef NEW_RAM_CACHE       defvar ("mem_cache_gc_2", 5 * 60, -  LOCALE(170, "Cache: Memory cache GC interval"), +  LOCALE(1045, "Cache: Memory cache GC interval"),    TYPE_INT, -  LOCALE(171, #"\ +  LOCALE(1046, #"\   <p>Interval in seconds between RAM cache garbage collector runs. This   GC removes entries from the RAM caches that have timed out or are   stale for other reasons, thereby making more room for new entries. The   configured cache size limits are enforced when entries are added, so   this GC is not required to keep the cache sizes down.</p>      <p>Running this GC too seldom causes some RAM caches to contain many   invalid cache entries, which could push out valid cache entries.   Running it too often causes unnecessary server load.</p>"))    ->set_range (1, Variable.no_limit);       // This was the variable that used to control the gc interval, but    // since the effect of the gc is radically different now we    // intentionally use a different variable name to reset the value.    definvisvar ("mem_cache_gc", 300, TYPE_INT);       v = defvar ("mem_cache_size", 100, -  LOCALE(0, "Cache: Memory cache size"), +  LOCALE(1043, "Cache: Memory cache size"),    TYPE_INT, -  LOCALE(0, #"\ +  LOCALE(1044, #"\   <p>Maximum size in MByte for all RAM caches taken together. This limit   covers the caches visible in the <a   href='/actions/?action=cachestatus.pike&class=status'>Cache status</a>   page.</p>      <p>Note that there are many more things in the Roxen WebServer that   take space, including some caches that are not handled by the common   RAM cache. Also, there is various indirect memory overhead that is not   directly accounted for by the size calculations. All these taken   together means that the figure configured here cannot be mapped