From bac53387a9868f3765175179aecd3b97981d54a0 Mon Sep 17 00:00:00 2001 From: Diva Canto Date: Wed, 3 Jun 2015 17:42:41 -0700 Subject: Mantis #7567: added an 8-sec expiring item cache to the inventory network connector. This fixed the problem on my local test grid and generally made things faster. This cache has been needed for a while... there are many parts in the code where the sim gets an item multiple times in a short amount of time (rezzing attachs and objects, for example). Other minor changes: - added the scene as a parameter to the constructor od FetchInvDescHandler, so that I could see in which scene the handler was being called - brought linked items in linked folders back to being prefetched --- .../Tests/FetchInventoryDescendents2HandlerTests.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'OpenSim/Capabilities/Handlers/FetchInventory/Tests/FetchInventoryDescendents2HandlerTests.cs') diff --git a/OpenSim/Capabilities/Handlers/FetchInventory/Tests/FetchInventoryDescendents2HandlerTests.cs b/OpenSim/Capabilities/Handlers/FetchInventory/Tests/FetchInventoryDescendents2HandlerTests.cs index 056b4db..380c54a 100644 --- a/OpenSim/Capabilities/Handlers/FetchInventory/Tests/FetchInventoryDescendents2HandlerTests.cs +++ b/OpenSim/Capabilities/Handlers/FetchInventory/Tests/FetchInventoryDescendents2HandlerTests.cs @@ -133,7 +133,7 @@ namespace OpenSim.Capabilities.Handlers.FetchInventory.Tests Init(); - FetchInvDescHandler handler = new FetchInvDescHandler(m_scene.InventoryService, null); + FetchInvDescHandler handler = new FetchInvDescHandler(m_scene.InventoryService, null, m_scene); TestOSHttpRequest req = new TestOSHttpRequest(); TestOSHttpResponse resp = new TestOSHttpResponse(); @@ -157,7 +157,7 @@ namespace OpenSim.Capabilities.Handlers.FetchInventory.Tests { TestHelpers.InMethod(); - FetchInvDescHandler handler = new FetchInvDescHandler(m_scene.InventoryService, null); + FetchInvDescHandler handler = new FetchInvDescHandler(m_scene.InventoryService, null, m_scene); TestOSHttpRequest req = new TestOSHttpRequest(); TestOSHttpResponse resp = new TestOSHttpResponse(); @@ -187,7 +187,7 @@ namespace OpenSim.Capabilities.Handlers.FetchInventory.Tests { TestHelpers.InMethod(); - FetchInvDescHandler handler = new FetchInvDescHandler(m_scene.InventoryService, null); + FetchInvDescHandler handler = new FetchInvDescHandler(m_scene.InventoryService, null, m_scene); TestOSHttpRequest req = new TestOSHttpRequest(); TestOSHttpResponse resp = new TestOSHttpResponse(); @@ -230,7 +230,7 @@ namespace OpenSim.Capabilities.Handlers.FetchInventory.Tests { TestHelpers.InMethod(); - FetchInvDescHandler handler = new FetchInvDescHandler(m_scene.InventoryService, null); + FetchInvDescHandler handler = new FetchInvDescHandler(m_scene.InventoryService, null, m_scene); TestOSHttpRequest req = new TestOSHttpRequest(); TestOSHttpResponse resp = new TestOSHttpResponse(); -- cgit v1.1