diff --git a/OpenSim/Framework/IAssetCache.cs b/OpenSim/Framework/IAssetCache.cs index 2df9199a26..1626a918cb 100644 --- a/OpenSim/Framework/IAssetCache.cs +++ b/OpenSim/Framework/IAssetCache.cs @@ -35,7 +35,7 @@ namespace OpenSim.Framework /// Cache the specified asset. /// /// - void Cache(AssetBase asset); + void Cache(AssetBase asset, bool replace = false); /// /// Cache that the specified asset wasn't found. diff --git a/OpenSim/Region/CoreModules/Asset/CenomeAssetCache.cs b/OpenSim/Region/CoreModules/Asset/CenomeAssetCache.cs index 403236c170..310caeacbc 100644 --- a/OpenSim/Region/CoreModules/Asset/CenomeAssetCache.cs +++ b/OpenSim/Region/CoreModules/Asset/CenomeAssetCache.cs @@ -208,7 +208,7 @@ namespace OpenSim.Region.CoreModules.Asset /// /// The asset that is being cached. /// - public void Cache(AssetBase asset) + public void Cache(AssetBase asset, bool replace = true) { if (asset != null) { diff --git a/OpenSim/Region/CoreModules/Asset/CoreAssetCache.cs b/OpenSim/Region/CoreModules/Asset/CoreAssetCache.cs index 10c0e85175..893f6dd5b2 100644 --- a/OpenSim/Region/CoreModules/Asset/CoreAssetCache.cs +++ b/OpenSim/Region/CoreModules/Asset/CoreAssetCache.cs @@ -121,7 +121,7 @@ namespace OpenSim.Region.CoreModules.Asset return asset != null; } - public void Cache(AssetBase asset) + public void Cache(AssetBase asset, bool replace = true) { if (asset != null) m_Cache.Store(asset.ID, asset);