diff options
Diffstat (limited to 'OpenSim/Services/Connectors/Asset/AssetServicesConnector.cs')
-rw-r--r-- | OpenSim/Services/Connectors/Asset/AssetServicesConnector.cs | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/OpenSim/Services/Connectors/Asset/AssetServicesConnector.cs b/OpenSim/Services/Connectors/Asset/AssetServicesConnector.cs index a6e8eb4..bdc3bef 100644 --- a/OpenSim/Services/Connectors/Asset/AssetServicesConnector.cs +++ b/OpenSim/Services/Connectors/Asset/AssetServicesConnector.cs | |||
@@ -49,7 +49,7 @@ namespace OpenSim.Services.Connectors | |||
49 | const int MAXSENDRETRIESLEN = 30; | 49 | const int MAXSENDRETRIESLEN = 30; |
50 | 50 | ||
51 | private string m_ServerURI = String.Empty; | 51 | private string m_ServerURI = String.Empty; |
52 | private IImprovedAssetCache m_Cache = null; | 52 | private IAssetCache m_Cache = null; |
53 | private int m_retryCounter; | 53 | private int m_retryCounter; |
54 | private bool m_inRetries; | 54 | private bool m_inRetries; |
55 | private List<AssetBase>[] m_sendRetries = new List<AssetBase>[MAXSENDRETRIESLEN]; | 55 | private List<AssetBase>[] m_sendRetries = new List<AssetBase>[MAXSENDRETRIESLEN]; |
@@ -233,7 +233,7 @@ namespace OpenSim.Services.Connectors | |||
233 | } | 233 | } |
234 | } | 234 | } |
235 | 235 | ||
236 | protected void SetCache(IImprovedAssetCache cache) | 236 | protected void SetCache(IAssetCache cache) |
237 | { | 237 | { |
238 | m_Cache = cache; | 238 | m_Cache = cache; |
239 | } | 239 | } |
@@ -260,8 +260,13 @@ namespace OpenSim.Services.Connectors | |||
260 | asset = SynchronousRestObjectRequester.MakeRequest<int, AssetBase>("GET", uri, 0, m_Auth); | 260 | asset = SynchronousRestObjectRequester.MakeRequest<int, AssetBase>("GET", uri, 0, m_Auth); |
261 | 261 | ||
262 | 262 | ||
263 | if (asset != null && m_Cache != null) | 263 | if (m_Cache != null) |
264 | m_Cache.Cache(asset); | 264 | { |
265 | if (asset != null) | ||
266 | m_Cache.Cache(asset); | ||
267 | else | ||
268 | m_Cache.CacheNegative(id); | ||
269 | } | ||
265 | } | 270 | } |
266 | return asset; | 271 | return asset; |
267 | } | 272 | } |