diff options
author | Oren Hurvitz | 2014-04-07 15:01:06 +0300 |
---|---|---|
committer | Oren Hurvitz | 2014-04-08 08:11:29 +0100 |
commit | e00f1a0410a3f57dea4a0cae1376a5d73609d75b (patch) | |
tree | 84cef48ff2538764daee803b3e5aec168859d354 /OpenSim/Region/CoreModules/ServiceConnectorsOut/UserAccounts/UserAccountCache.cs | |
parent | Better (amend to previous commit) (diff) | |
download | opensim-SC_OLD-e00f1a0410a3f57dea4a0cae1376a5d73609d75b.zip opensim-SC_OLD-e00f1a0410a3f57dea4a0cae1376a5d73609d75b.tar.gz opensim-SC_OLD-e00f1a0410a3f57dea4a0cae1376a5d73609d75b.tar.bz2 opensim-SC_OLD-e00f1a0410a3f57dea4a0cae1376a5d73609d75b.tar.xz |
Allow invalidating the users cache
Diffstat (limited to 'OpenSim/Region/CoreModules/ServiceConnectorsOut/UserAccounts/UserAccountCache.cs')
-rw-r--r-- | OpenSim/Region/CoreModules/ServiceConnectorsOut/UserAccounts/UserAccountCache.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/UserAccounts/UserAccountCache.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/UserAccounts/UserAccountCache.cs index ddef75f..ed52e48 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/UserAccounts/UserAccountCache.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/UserAccounts/UserAccountCache.cs | |||
@@ -1,4 +1,4 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) Contributors, http://opensimulator.org/ | 2 | * Copyright (c) Contributors, http://opensimulator.org/ |
3 | * See CONTRIBUTORS.TXT for a full list of copyright holders. | 3 | * See CONTRIBUTORS.TXT for a full list of copyright holders. |
4 | * | 4 | * |
@@ -61,6 +61,11 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.UserAccounts | |||
61 | //m_log.DebugFormat("[USER CACHE]: cached user {0}", userID); | 61 | //m_log.DebugFormat("[USER CACHE]: cached user {0}", userID); |
62 | } | 62 | } |
63 | 63 | ||
64 | public void Invalidate(UUID userID) | ||
65 | { | ||
66 | m_UUIDCache.Remove(userID); | ||
67 | } | ||
68 | |||
64 | public UserAccount Get(UUID userID, out bool inCache) | 69 | public UserAccount Get(UUID userID, out bool inCache) |
65 | { | 70 | { |
66 | UserAccount account = null; | 71 | UserAccount account = null; |