Bug fix. Adding the asset to the cache after a DB get.
parent
b43fc318fb
commit
b87f982a7e
|
@ -151,7 +151,11 @@ namespace OpenSim.Region.CoreModules.ServiceConnectors.Asset
|
||||||
asset = m_Cache.Get(id);
|
asset = m_Cache.Get(id);
|
||||||
|
|
||||||
if (asset == null)
|
if (asset == null)
|
||||||
return m_AssetService.Get(id);
|
{
|
||||||
|
asset = m_AssetService.Get(id);
|
||||||
|
if ((m_Cache != null) && (asset != null))
|
||||||
|
m_Cache.Cache(asset);
|
||||||
|
}
|
||||||
return asset;
|
return asset;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue