Method code for $command_cache.cache_server_uninit()

[Turn off line numbering]
  1: var user;
  2: 
  3: if (caller() != $command_cache)
  4:     throw(~perm, "Caller is not of the command subsystem.");
  5: 
  6: // see if anybody still needs us, otherwise purge
  7: if (.is_general_cache()) {
  8:     for user in ($user_db.connected()) {
  9:         if (user.has_ancestor(this()) || this() in user.command_modules())
 10:             return;
 11:     }
 12: }
 13: .purge_cache();

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

Tlon