yeack, it may be better to use cache on the most used get

This commit is contained in:
UbitUmarov
2020-10-28 10:07:03 +00:00
parent 1f09e40756
commit 52c86e543f

View File

@@ -269,6 +269,13 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Asset
}
else
{
if (m_Cache != null)
{
if(!m_Cache.Get(id, out asset))
return null;
if (asset != null)
return asset;
}
asset = GetFromLocal(id);
if(m_Cache != null)
{