Fix Flotsam cache so it will use the disk cache if the memory cache is enabled
parent
c122489e09
commit
74b23210a7
|
@ -419,7 +419,7 @@ namespace Flotsam.RegionModules.AssetCache
|
||||||
|
|
||||||
if (m_MemoryCacheEnabled)
|
if (m_MemoryCacheEnabled)
|
||||||
asset = GetFromMemoryCache(id);
|
asset = GetFromMemoryCache(id);
|
||||||
else if (m_FileCacheEnabled)
|
if (asset == null && m_FileCacheEnabled)
|
||||||
asset = GetFromFileCache(id);
|
asset = GetFromFileCache(id);
|
||||||
|
|
||||||
if (((m_LogLevel >= 1)) && (m_HitRateDisplay != 0) && (m_Requests % m_HitRateDisplay == 0))
|
if (((m_LogLevel >= 1)) && (m_HitRateDisplay != 0) && (m_Requests % m_HitRateDisplay == 0))
|
||||||
|
@ -938,4 +938,4 @@ namespace Flotsam.RegionModules.AssetCache
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue