Method code for $sys.init_database()

[Turn off line numbering]
  1: var obj, p, c, cmd, other;
  2: 
  3: // re-init caches
  4: $remote_cache.rehash_cache();
  5: 
  6: // only rehash non-general caches--general caches should be initialized
  7: // as they are needed, by .cache_server_init().
  8: other = $command_cache.children().setremove($user_interfaces);
  9: other = other.mmap('descendants).flatten().compress();
 10: for obj in (filter obj in (other) where (!obj.is_general_cache())) {
 11:     (| obj.rehash_cache() |);
 12:     refresh();
 13: }

// Created 27-Mar-1995 as a part of ColdCore, see: @help Credit

Tlon