diff --git a/web/views/@default/servers/components/cache/@policy_menu.html b/web/views/@default/servers/components/cache/@policy_menu.html
index b9cda981..0cbaa6ab 100644
--- a/web/views/@default/servers/components/cache/@policy_menu.html
+++ b/web/views/@default/servers/components/cache/@policy_menu.html
@@ -4,7 +4,7 @@
每行一个URL,比如
每行一个URL目录,比如
每行一个URL目录,比如
严重注意:该操作将清理集群所有节点上的所有对应缓存。
- \ No newline at end of file +严重警告:该操作将清理集群所有节点上的所有当前策略产生的缓存;如果只是想清理单个缓存,请使用“刷新预热”功能。
+ \ No newline at end of file diff --git a/web/views/@default/servers/components/cache/clean.js b/web/views/@default/servers/components/cache/clean.js index 45555f9e..2f175fd3 100644 --- a/web/views/@default/servers/components/cache/clean.js +++ b/web/views/@default/servers/components/cache/clean.js @@ -1,4 +1,15 @@ Tea.context(function () { + this.reason = 0 + + this.REASON_NEW_PIE = 0 + this.REASON_ISSUE_REPORT = 1 + this.REASON_BATCH_DELETE = 2 + this.REASON_MAINTAINS = 3 + + this.isReasonable = function () { + return this.reason == this.REASON_ISSUE_REPORT || this.reason == this.REASON_BATCH_DELETE || this.reason == this.REASON_MAINTAINS + } + if (this.clusterId == null) { if (this.clusters.length > 0) { this.clusterId = this.clusters[0].id diff --git a/web/views/@default/servers/components/cache/purge.html b/web/views/@default/servers/components/cache/purge.html index c20e41a3..7dac57cf 100644 --- a/web/views/@default/servers/components/cache/purge.html +++ b/web/views/@default/servers/components/cache/purge.html @@ -20,7 +20,7 @@每行一个URL,比如
每行一个URL目录,比如
每行一个URL目录,比如
每行一个URL,比如
每行一个URL目录,比如
每行一个URL目录,比如
每行一个URL,比如
每行一个URL目录,比如
每行一个URL目录,比如