mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
Bug fix. Adding the asset to the cache after a DB get.
This commit is contained in:
@@ -151,7 +151,11 @@ namespace OpenSim.Region.CoreModules.ServiceConnectors.Asset
|
||||
asset = m_Cache.Get(id);
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user