public function updateUserCache($UserID, $Field, $Value = null)
{
// Try and get the user from the cache.
$User = $this->getUserFromCache($UserID, 'userid');
if (!$User) {
return;
}
if (!is_array($Field)) {
$Field = [$Field => $Value];
}
foreach ($Field as $f => $v) {
$User[$f] = $v;
}
$this->userCache($User);
}