Branch: Tag:

2000-09-05

2000-09-05 08:55:03 by Per Hedbor <ph@opera.com>

Fixes [Bug 197 (#197)], we have to flush the cache when the module list is changed

Rev: server/base_server/configuration.pike:1.361

1:   // A vitual server's main configuration   // Copyright © 1996 - 2000, Roxen IS.    - constant cvs_version = "$Id: configuration.pike,v 1.360 2000/09/04 08:34:05 per Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.361 2000/09/05 08:55:03 per Exp $";   constant is_configuration = 1;   #include <module.h>   #include <module_constants.h>
2105:    mixed err;    int module_type;    +  +  datacache->flush(); +     if( sscanf(modname, "%s#%d", modname, id ) != 2 )    while( modules[ modname ] && modules[ modname ][ id ] )    id++;
2482:    int id, pr;    sscanf(modname, "%s#%d", modname, id );    +  datacache->flush(); +     ModuleInfo moduleinfo = roxen->find_module( modname );    mapping module = modules[ modname ];    string descr = moduleinfo->get_name() + (id ? " copy " + (id + 1) : "");
2768:       int hits, misses;    +  void flush() +  { +  current_size = 0; +  cache = ([]); +  } +     static void clear_some_cache()    {    array q = indices( cache );