diff options
Bug fix. Adding the asset to the cache after a DB get.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/CoreModules/ServiceConnectors/Asset/LocalAssetServiceConnector.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/ServiceConnectors/Asset/LocalAssetServiceConnector.cs b/OpenSim/Region/CoreModules/ServiceConnectors/Asset/LocalAssetServiceConnector.cs index 995a47a..8f390ad 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectors/Asset/LocalAssetServiceConnector.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectors/Asset/LocalAssetServiceConnector.cs | |||
@@ -151,7 +151,11 @@ namespace OpenSim.Region.CoreModules.ServiceConnectors.Asset | |||
151 | asset = m_Cache.Get(id); | 151 | asset = m_Cache.Get(id); |
152 | 152 | ||
153 | if (asset == null) | 153 | if (asset == null) |
154 | return m_AssetService.Get(id); | 154 | { |
155 | asset = m_AssetService.Get(id); | ||
156 | if ((m_Cache != null) && (asset != null)) | ||
157 | m_Cache.Cache(asset); | ||
158 | } | ||
155 | return asset; | 159 | return asset; |
156 | } | 160 | } |
157 | 161 | ||