Browse Source

[core] Add a per-browser configurable Assist cache

Enrico Berti 9 năm trước cách đây
mục cha
commit
82a035e2b2

+ 1 - 1
desktop/core/src/desktop/static/desktop/js/assist/assistHelper.js

@@ -22,7 +22,7 @@
   }
 }(this, function (ko) {
 
-  var TIME_TO_LIVE_IN_MILLIS = 86400000; // 1 day
+  var TIME_TO_LIVE_IN_MILLIS = $.totalStorage('hue.cacheable.ttl') || 86400000; // 1 day by default, configurable with $.totalStorage('hue.cacheable.ttl', 1234567890)
   var AUTOCOMPLETE_API_PREFIX = "/notebook/api/autocomplete/";
   var HDFS_API_PREFIX = "/filebrowser/view=";
   var HDFS_PARAMETERS = "?pagesize=100&format=json";