diff options
author | Melanie Thielker | 2008-08-16 02:00:36 +0000 |
---|---|---|
committer | Melanie Thielker | 2008-08-16 02:00:36 +0000 |
commit | 328ab79b783d4beaa5f954918e3b306950153c1a (patch) | |
tree | e2bf03b6cc7c6514a9c83968a716648394602e14 /OpenSim/Region/Environment/Modules/World | |
parent | Perils of copypaste. Missing references. (diff) | |
download | opensim-SC-328ab79b783d4beaa5f954918e3b306950153c1a.zip opensim-SC-328ab79b783d4beaa5f954918e3b306950153c1a.tar.gz opensim-SC-328ab79b783d4beaa5f954918e3b306950153c1a.tar.bz2 opensim-SC-328ab79b783d4beaa5f954918e3b306950153c1a.tar.xz |
Refactor a lot of direct calls to OGS1 to use the cached version instead.
Scripts can now no longer DOS the user server and there are a lot fewer
gratuitious lookups of user profile data.
Diffstat (limited to 'OpenSim/Region/Environment/Modules/World')
-rw-r--r-- | OpenSim/Region/Environment/Modules/World/Archiver/ArchiveReadRequest.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Modules/World/Archiver/ArchiveReadRequest.cs b/OpenSim/Region/Environment/Modules/World/Archiver/ArchiveReadRequest.cs index e6597c3..1340f8b 100644 --- a/OpenSim/Region/Environment/Modules/World/Archiver/ArchiveReadRequest.cs +++ b/OpenSim/Region/Environment/Modules/World/Archiver/ArchiveReadRequest.cs | |||
@@ -29,6 +29,7 @@ using OpenSim.Framework; | |||
29 | using OpenSim.Region.Environment.Scenes; | 29 | using OpenSim.Region.Environment.Scenes; |
30 | using OpenSim.Region.Environment.Modules.World.Serialiser; | 30 | using OpenSim.Region.Environment.Modules.World.Serialiser; |
31 | using OpenSim.Region.Environment.Modules.World.Terrain; | 31 | using OpenSim.Region.Environment.Modules.World.Terrain; |
32 | using OpenSim.Framework.Communications.Cache; | ||
32 | using System; | 33 | using System; |
33 | using Axiom.Math; | 34 | using Axiom.Math; |
34 | using System.Collections.Generic; | 35 | using System.Collections.Generic; |
@@ -187,7 +188,8 @@ namespace OpenSim.Region.Environment.Modules.World.Archiver | |||
187 | { | 188 | { |
188 | if (!m_validUserUuids.ContainsKey(uuid)) | 189 | if (!m_validUserUuids.ContainsKey(uuid)) |
189 | { | 190 | { |
190 | if (m_scene.CommsManager.UserService.GetUserProfile(uuid) != null) | 191 | CachedUserInfo profile = m_scene.CommsManager.UserProfileCacheService.GetUserDetails(uuid); |
192 | if (profile != null && profile.UserProfile != null) | ||
191 | m_validUserUuids.Add(uuid, true); | 193 | m_validUserUuids.Add(uuid, true); |
192 | else | 194 | else |
193 | m_validUserUuids.Add(uuid, false); | 195 | m_validUserUuids.Add(uuid, false); |