diff options
author | Mike Mazur | 2008-08-13 06:08:26 +0000 |
---|---|---|
committer | Mike Mazur | 2008-08-13 06:08:26 +0000 |
commit | cd89864f4c8bfa093ded224245a7197822c7bd80 (patch) | |
tree | 972d32f0e714e8d73f23e988d78b2ed2d5f217fd | |
parent | Make the estate owner UUID from the database have the same rights (diff) | |
download | opensim-SC-cd89864f4c8bfa093ded224245a7197822c7bd80.zip opensim-SC-cd89864f4c8bfa093ded224245a7197822c7bd80.tar.gz opensim-SC-cd89864f4c8bfa093ded224245a7197822c7bd80.tar.bz2 opensim-SC-cd89864f4c8bfa093ded224245a7197822c7bd80.tar.xz |
Thanks, lulurun, for a patch that clears and refreshes and outdated user
profile cache (issue 1919).
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Scene.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index ef0a119..c8cfd3a 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs | |||
@@ -2459,7 +2459,12 @@ namespace OpenSim.Region.Environment.Scenes | |||
2459 | m_authenticateHandler.AddNewCircuit(agent.circuitcode, agent); | 2459 | m_authenticateHandler.AddNewCircuit(agent.circuitcode, agent); |
2460 | // rewrite session_id | 2460 | // rewrite session_id |
2461 | CachedUserInfo userinfo = CommsManager.UserProfileCacheService.GetUserDetails(agent.AgentID); | 2461 | CachedUserInfo userinfo = CommsManager.UserProfileCacheService.GetUserDetails(agent.AgentID); |
2462 | userinfo.SessionID = agent.SessionID; | 2462 | if (userinfo.SessionID != agent.SessionID) // means cache hit but outdated session ID |
2463 | { | ||
2464 | // Let's re-grab the whole user profile, because anything may have changed on the user server. | ||
2465 | CommsManager.UserProfileCacheService.RemoveUser(agent.AgentID); | ||
2466 | userinfo = CommsManager.UserProfileCacheService.GetUserDetails(agent.AgentID); | ||
2467 | } | ||
2463 | } | 2468 | } |
2464 | else | 2469 | else |
2465 | { | 2470 | { |