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:
Ursprung
a5ebc282cf
Commit
29141ab35c
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
|
@ -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!
|
||||
|
|
Laden …
In neuem Issue referenzieren