diff --git a/SherbetVaults/Models/Config/SherbetVaultsConfig.cs b/SherbetVaults/Models/Config/SherbetVaultsConfig.cs index c8c0be5..f556b87 100644 --- a/SherbetVaults/Models/Config/SherbetVaultsConfig.cs +++ b/SherbetVaults/Models/Config/SherbetVaultsConfig.cs @@ -9,7 +9,6 @@ namespace SherbetVaults.Models.Config public class SherbetVaultsConfig : IRocketPluginConfiguration { public DatabaseSettings DatabaseSettings; - public bool CacheVaults = false; public bool LargestVaultIsDefault = false; public string DefaultVault = "default"; public bool VaultAliasesEnabled = false; diff --git a/SherbetVaults/Models/VaultManager.cs b/SherbetVaults/Models/VaultManager.cs index a7b4013..9ef6135 100644 --- a/SherbetVaults/Models/VaultManager.cs +++ b/SherbetVaults/Models/VaultManager.cs @@ -10,7 +10,6 @@ public class VaultManager public SherbetVaultsPlugin VaultsPlugin { get; } public VaultCache VaultsCache { get; } public DatabaseManager Database => VaultsPlugin.Database; - public bool EnableCache => VaultsPlugin.Config.CacheVaults; public VaultManager(SherbetVaultsPlugin vaultsPlugin) { @@ -20,15 +19,6 @@ public VaultManager(SherbetVaultsPlugin vaultsPlugin) public async Task GetVault(ulong playerID, string vaultID, bool allowCache = true) { - //if (EnableCache && allowCache) - //{ - // var cached = VaultsCache.GetStorage(playerID, vaultID); - // if (cached != null) - // { - // return cached; - // } - //} - var vaultConfig = VaultsPlugin.VaultSelector.GetVaultConfig(vaultID); if (vaultConfig == null) @@ -38,10 +28,6 @@ public async Task GetVault(ulong playerID, string vaultID, bool allo var items = await Database.VaultItems.OpenVault(playerID, vaultID, vaultConfig); - if (EnableCache) - { - VaultsCache.SetStorage(playerID, vaultID, items); - } return items; }