From 2912aafe259727351eb9405532e45aa3501b7e9a Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Mon, 25 Aug 2008 07:35:17 +0000 Subject: * This commit incorporates the heart of the OpenGridProtocol patch that is currently on Forge in a nice, friendly modular format. * There are a lot of changes and this is quite experimental. It's off by default, but you can turn it on by examining the bottom of the opensim.ini.example for the proper OpenSim.ini settings. Remember, you still need an agent domain.. * Furthermore, it isn't quite right when it comes to teleporting to remote regions (place_avatar) --- .../Cache/UserProfileCacheService.cs | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'OpenSim/Framework/Communications/Cache') diff --git a/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs b/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs index 4e3840b..3b02c88 100644 --- a/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs +++ b/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs @@ -160,6 +160,31 @@ namespace OpenSim.Framework.Communications.Cache } /// + /// Preloads User data into the region cache. Modules may use this service to add non-standard clients + /// + /// + /// + public void PreloadUserCache(LLUUID userID, UserProfileData userData) + { + if (userID == LLUUID.Zero) + return; + + lock (m_userProfiles) + { + if (m_userProfiles.ContainsKey(userID)) + { + return; + } + else + { + + CachedUserInfo userInfo = new CachedUserInfo(m_commsManager, userData); + m_userProfiles.Add(userID, userInfo); + } + } + } + + /// /// Handle an inventory folder creation request from the client. /// /// -- cgit v1.1