Branch: Tag:

2001-03-16

2001-03-16 00:07:04 by Per Hedbor <ph@opera.com>

Oups. Force save of argcache_secret. Otherwise all image files are regenerated with fresh URLs each time Roxen is resterted, which is not what we want(tm)

Rev: server/base_server/global_variables.pike:1.66

1:   // This file is part of Roxen Webserver.   // Copyright © 1996 - 2000, Roxen IS. - // $Id: global_variables.pike,v 1.65 2001/03/05 18:18:41 per Exp $ + // $Id: global_variables.pike,v 1.66 2001/03/16 00:07:04 per Exp $      /*   #pragma strict_types
562:       secret = Crypto.md5()->update(""+time(1)+random(100000)+"x"+gethrtime())    ->digest(); -  definvisvar("argcache_secret",secret,TYPE_STRING); +     -  +  definvisvar("argcache_secret","",TYPE_STRING); +  set( "argcache_secret", secret ); +  // force save. +  +     defvar("suicide_engage", 0,    LOCALE(160, "Auto Restart: Enable Automatic Restart"),    TYPE_FLAG|VAR_MORE,
605:      void restore_global_variables()   { +  mapping m = retrieve("Variables", 0);    setvars(retrieve("Variables", 0)); -  +  if( !m->argcache_secret ) save();    old_module_dirs = query( "ModuleDirs" );    getvar( "ModuleDirs" )->add_changed_callback( zap_all_module_caches );   }