Bug fix. Adding the asset to the cache after a DB get.

0.6.6-post-fixes
diva 2009-06-08 19:35:36 +00:00
parent b43fc318fb
commit b87f982a7e
1 changed files with 5 additions and 1 deletions

View File

@ -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;
} }