Method code for $remote_cache.rehash_cache()

[Turn off line numbering]
  1: var def, cmd;
  2: 
  3: (> .perms(sender()) <);
  4: 
  5: // oof, this is big and nasty.  We will need to pick through the
  6: // whole db to find all remotely defined commands.  Dont do this
  7: // often--it should keep itself up to date when they are added
  8: // or removed.
  9: for def in ($has_commands.descendants()) {
 10:     for cmd in (def.remote_commands().keys())
 11:         .add_to_cache(cmd, def);
 12:     refresh();
 13: }

// Created 19-Sep-1997 as a part of ColdCore, see: @help Credit

Method Ancestry Override:

 ----   58 $remote_cache.rehash_cache()
 ----  139 $command_cache.rehash_cache()

Tlon