...
|
...
|
@@ -39,6 +39,10 @@ class PageCahe extends Model { |
|
|
queryUri = self.replaceUrl(queryUri);
|
|
|
let sql = `select FIRST(cache_status) from ${storeTableName} where full_path =~ /${queryUri}.*/ group by "key"`;
|
|
|
let result = await InfluxDB.query(sql);
|
|
|
if (!result.length) {
|
|
|
self._broadcast(`未查询到匹配的缓存信息`);
|
|
|
continue;
|
|
|
}
|
|
|
let servers = await self.findAll();
|
|
|
|
|
|
self._broadcast(`共${servers.length}台nginx准备清理..`)
|
...
|
...
|
|