0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-21 17:00:29 +01:00

DEV: Change instance name to a more specific name

Dieser Commit ist enthalten in:
jumagura 2023-06-21 00:41:45 -04:00
Ursprung a5ebc282cf
Commit 29141ab35c

Datei anzeigen

@ -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!