Authored by yyq

clear

... ... @@ -26,7 +26,7 @@ const client = {
trimFiles.push(_.trim(val));
});
trimFiles = _.compact(trimFiles);
trimFiles = _.compact(_.uniq(trimFiles));
let revision = md5(trimFiles);
... ...
... ... @@ -103,6 +103,18 @@
});
}
function clearCache(url) {
var cloud = ['qiniu', 'qcloud', 'aliyun'];
cloud.forEach(function(val) {
$.post('/cdn_cache/clear', {
query_uri: url,
object_type: 'File',
cloud: val
});
});
}
$('.pannel-option').on('click', '.tooltips', function() {
var $this = $(this),
$par = $this.parent(),
... ... @@ -118,6 +130,7 @@
}, function(res) {
if (res.code === 200) {
getManifest(res.data.url);
clearCache(res.data.url);
$edit.hide();
} else {
$par.addClass('pannel-edit');
... ...