Branch: Tag:

2000-08-17

2000-08-17 01:16:06 by Per Hedbor <ph@opera.com>

Added options to control the RAM cache

Rev: server/protocols/http.pike:1.250
Rev: server/start:1.121

1:   #!/bin/sh   # - # $Id: start,v 1.120 2000/08/09 02:34:34 per Exp $ + # $Id: start,v 1.121 2000/08/17 01:16:06 per Exp $      pre="`echo \" $$ \" | sed -e 's/\(.........\)\(.*\)/\1/g'` :"   
101:   ####### BEGIN ARGUMENT PARSING       - DEFINES="$DEFINES -DKEEP_ALIVE" + DEFINES="$DEFINES -DRAM_CACHE"      # Enable threads (if available) on Solaris.   # Most other OS's have thread bugs that cause them or Roxen to crash.
160:    '--fd-debug'|'--with-fd-debug'|'--enable-fd-debug')    DEFINES="-DFD_DEBUG $DEFINES"    ;; +  '--without-ram-cache'|'--disable-ram-cache') +  DEFINES="`echo $DEFINES | sed -e 's/-DRAM_CACHE//g'`" +  ;; +  '--without-ram-cache-stat'|'--disable-ram-cache-stat') +  DEFINES="`-DRAM_CACHE_ASUME_STATIC_CONTENT`" +  ;;    '--dump-debug'|'--with-dump-debug'|'--enable-dump-debug')    DEFINES="-DDUMP_DEBUG $DEFINES"    ;;
257:    .B--config-dir=DIRB.: Use an alternate configuration directory.    Defaults to .B../configurationB..    +  .B--without-ram-cacheB.: Do not use an in-RAM cache to speed +  things up. Saves RAM at the cost of speed. +  +  .B--without-ram-cache-statB.: Disable the stat that is usualy done +  for files in the ram cache to ensure that +  they are not changed before they are sent. +  Improves performance at the cost of constant +  aggrevation if the site is edited. Useful for +  truly static sites. +     .B--with-threadsB.: If threads are available, use them.       .B--without-threadsB.: Even if threads are enabled by default,