From 29141ab35c45030f9226aa90c1f9645b1d2d7bee Mon Sep 17 00:00:00 2001 From: jumagura Date: Wed, 21 Jun 2023 00:41:45 -0400 Subject: [PATCH] DEV: Change instance name to a more specific name --- lib/custom_wizard/custom_field.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/custom_wizard/custom_field.rb b/lib/custom_wizard/custom_field.rb index 534953fb..e8c69c8e 100644 --- a/lib/custom_wizard/custom_field.rb +++ b/lib/custom_wizard/custom_field.rb @@ -140,7 +140,7 @@ class ::CustomWizard::CustomField end def self.cached_list - @cached_list ||= ::CustomWizard::Cache.wrap(LIST_CACHE_KEY) do + @custom_wizard_cached_fields ||= ::CustomWizard::Cache.wrap(LIST_CACHE_KEY) do PluginStoreRow.where(plugin_name: NAMESPACE).map do |record| create_from_store(record).as_json.with_indifferent_access end @@ -216,7 +216,7 @@ class ::CustomWizard::CustomField end def self.invalidate_cache - @cached_list = nil + @custom_wizard_cached_fields = nil CustomWizard::Cache.new(LIST_CACHE_KEY).delete Discourse.clear_readonly! Discourse.request_refresh!