Преглед на файлове

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) {