aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorUbitUmarov2016-11-11 12:59:43 +0000
committerUbitUmarov2016-11-11 12:59:43 +0000
commit326821f66ed6286ee8b2ea6f5606d3eb902489fc (patch)
tree46ef5df8cae3b19cc40cc9bdb020008fbfb79417 /OpenSim/Region
parentGetUserAccounts cannot cache null accounts (diff)
downloadopensim-SC-326821f66ed6286ee8b2ea6f5606d3eb902489fc.zip
opensim-SC-326821f66ed6286ee8b2ea6f5606d3eb902489fc.tar.gz
opensim-SC-326821f66ed6286ee8b2ea6f5606d3eb902489fc.tar.bz2
opensim-SC-326821f66ed6286ee8b2ea6f5606d3eb902489fc.tar.xz
reduce useraccouts cache time
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/CoreModules/ServiceConnectorsOut/UserAccounts/UserAccountCache.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/UserAccounts/UserAccountCache.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/UserAccounts/UserAccountCache.cs
index 03cb680..6c1cc52 100644
--- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/UserAccounts/UserAccountCache.cs
+++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/UserAccounts/UserAccountCache.cs
@@ -36,8 +36,8 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.UserAccounts
36{ 36{
37 public class UserAccountCache : IUserAccountCacheModule 37 public class UserAccountCache : IUserAccountCacheModule
38 { 38 {
39 private const double CACHE_EXPIRATION_SECONDS = 120000.0; // 33 hours! 39 private const double CACHE_EXPIRATION_SECONDS = 3600.0; // 1 hour!
40 private const double CACHENULL_EXPIRATION_SECONDS = 600; // 10minutes 40 private const double CACHE_NULL_EXPIRATION_SECONDS = 600; // 10minutes
41 41
42// private static readonly ILog m_log = 42// private static readonly ILog m_log =
43// LogManager.GetLogger( 43// LogManager.GetLogger(
@@ -59,7 +59,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.UserAccounts
59 lock(accessLock) 59 lock(accessLock)
60 { 60 {
61 if (account == null) 61 if (account == null)
62 m_UUIDCache.AddOrUpdate(userID, null, CACHENULL_EXPIRATION_SECONDS); 62 m_UUIDCache.AddOrUpdate(userID, null, CACHE_NULL_EXPIRATION_SECONDS);
63 else 63 else
64 { 64 {
65 m_UUIDCache.AddOrUpdate(userID, account, CACHE_EXPIRATION_SECONDS); 65 m_UUIDCache.AddOrUpdate(userID, account, CACHE_EXPIRATION_SECONDS);