Cache all assets on upload so that the client can still retrieve the asset if it enters a retry queue

avinationmerge
Tom Grimshaw 2010-07-01 09:46:57 -07:00
parent b38a22506b
commit 071d601dcb
1 changed files with 2 additions and 3 deletions

View File

@ -256,11 +256,10 @@ namespace OpenSim.Services.Connectors
public string Store(AssetBase asset) public string Store(AssetBase asset)
{ {
if (m_Cache != null)
m_Cache.Cache(asset);
if (asset.Temporary || asset.Local) if (asset.Temporary || asset.Local)
{ {
if (m_Cache != null)
m_Cache.Cache(asset);
return asset.ID; return asset.ID;
} }