From ab237be807be7722fedcd47216e887a369764e38 Mon Sep 17 00:00:00 2001 From: navaneeth Date: Wed, 19 May 2021 21:17:56 +0530 Subject: [PATCH] Clear cache when datasource credentials are updated --- app/controllers/data_sources_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/data_sources_controller.rb b/app/controllers/data_sources_controller.rb index 09e499a0f8..06e7167388 100644 --- a/app/controllers/data_sources_controller.rb +++ b/app/controllers/data_sources_controller.rb @@ -57,6 +57,8 @@ class DataSourcesController < ApplicationController name: params[:name], options: options_to_save ) + + $connections.delete @data_source.id end def test_connection