UserModel::updateUserCache PHP Method

updateUserCache() public method

public updateUserCache ( integer $UserID, string | array $Field, mixed | null $Value = null )
$UserID integer
$Field string | array
$Value mixed | null
    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);
    }
UserModel