mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 14:16:07 +08:00
Thanks, lulurun, for a patch that clears and refreshes and outdated user
profile cache (issue 1919).
This commit is contained in:
@@ -2459,7 +2459,12 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
m_authenticateHandler.AddNewCircuit(agent.circuitcode, agent);
|
||||
// rewrite session_id
|
||||
CachedUserInfo userinfo = CommsManager.UserProfileCacheService.GetUserDetails(agent.AgentID);
|
||||
userinfo.SessionID = agent.SessionID;
|
||||
if (userinfo.SessionID != agent.SessionID) // means cache hit but outdated session ID
|
||||
{
|
||||
// Let's re-grab the whole user profile, because anything may have changed on the user server.
|
||||
CommsManager.UserProfileCacheService.RemoveUser(agent.AgentID);
|
||||
userinfo = CommsManager.UserProfileCacheService.GetUserDetails(agent.AgentID);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user