mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 02:36:00 +08:00
yeack, it may be better to use cache on the most used get
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user