소스 검색

HUE-5178 [core] Fix assist S3 refresh cache

Enrico Berti 9 년 전
부모
커밋
76b602bb0b
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  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) {