Browse Source

HUE-5178 [core] Fix assist S3 refresh cache

Enrico Berti 9 năm trước cách đây
mục cha
commit
76b602bb0b
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      desktop/core/src/desktop/static/desktop/js/apiHelper.js

+ 4 - 0
desktop/core/src/desktop/static/desktop/js/apiHelper.js

@@ -55,6 +55,10 @@ var ApiHelper = (function () {
     huePubSub.subscribe('assist.clear.hdfs.cache', function () {
       $.totalStorage("hue.assist." + self.getTotalStorageUserPrefix('hdfs'), {});
     });
+
+    huePubSub.subscribe('assist.clear.s3.cache', function () {
+      $.totalStorage("hue.assist." + self.getTotalStorageUserPrefix('s3'), {});
+    });
   }
 
   ApiHelper.prototype.hasExpired = function (timestamp) {