aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/Asset/CoreAssetCache.cs
diff options
context:
space:
mode:
authorJohn Hurliman2009-10-20 10:33:23 -0700
committerJohn Hurliman2009-10-20 10:33:23 -0700
commit9a5e7222cef7e81fee0c992c4557ac56e9665808 (patch)
tree2167b485454b513387fe239630038e83642613e6 /OpenSim/Region/CoreModules/Asset/CoreAssetCache.cs
parent* Optimized sending of terrain data (diff)
downloadopensim-SC_OLD-9a5e7222cef7e81fee0c992c4557ac56e9665808.zip
opensim-SC_OLD-9a5e7222cef7e81fee0c992c4557ac56e9665808.tar.gz
opensim-SC_OLD-9a5e7222cef7e81fee0c992c4557ac56e9665808.tar.bz2
opensim-SC_OLD-9a5e7222cef7e81fee0c992c4557ac56e9665808.tar.xz
* Removing cruft left over from the conversion to the new texture sending and UDP code
* Changing the cache modules to only initialize the caches if they are actually enabled. Should save a bit of resources from unused cache systems
Diffstat (limited to 'OpenSim/Region/CoreModules/Asset/CoreAssetCache.cs')
-rw-r--r--OpenSim/Region/CoreModules/Asset/CoreAssetCache.cs7
1 files changed, 3 insertions, 4 deletions
diff --git a/OpenSim/Region/CoreModules/Asset/CoreAssetCache.cs b/OpenSim/Region/CoreModules/Asset/CoreAssetCache.cs
index 0a7e736..7da5e7a 100644
--- a/OpenSim/Region/CoreModules/Asset/CoreAssetCache.cs
+++ b/OpenSim/Region/CoreModules/Asset/CoreAssetCache.cs
@@ -44,10 +44,8 @@ namespace OpenSim.Region.CoreModules.Asset
44 LogManager.GetLogger( 44 LogManager.GetLogger(
45 MethodBase.GetCurrentMethod().DeclaringType); 45 MethodBase.GetCurrentMethod().DeclaringType);
46 46
47 private bool m_Enabled = false; 47 private bool m_Enabled;
48 private Cache m_Cache = new Cache(CacheMedium.Memory, 48 private Cache m_Cache;
49 CacheStrategy.Aggressive,
50 CacheFlags.AllowUpdate);
51 49
52 public string Name 50 public string Name
53 { 51 {
@@ -77,6 +75,7 @@ namespace OpenSim.Region.CoreModules.Asset
77 return; 75 return;
78 } 76 }
79 77
78 m_Cache = new Cache(CacheMedium.Memory, CacheStrategy.Aggressive, CacheFlags.AllowUpdate);
80 m_Enabled = true; 79 m_Enabled = true;
81 80
82 m_log.Info("[ASSET CACHE]: Core asset cache enabled"); 81 m_log.Info("[ASSET CACHE]: Core asset cache enabled");