diff --git a/app/models/ext_management_system.rb b/app/models/ext_management_system.rb index 6dcba2e2833..7bd5a33e9b2 100644 --- a/app/models/ext_management_system.rb +++ b/app/models/ext_management_system.rb @@ -520,9 +520,6 @@ def self.refresh_all_ems_timer def self.refresh_ems(ems_ids, reload = false) ems_ids = [ems_ids] unless ems_ids.kind_of?(Array) - - ExtManagementSystem.where(:id => ems_ids).each { |ems| ems.reset_vim_cache_queue if ems.respond_to?(:reset_vim_cache_queue) } if reload - ems_ids = ems_ids.collect { |id| [ExtManagementSystem, id] } EmsRefresh.queue_refresh(ems_ids) end