mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-27 16:54:04 +00:00
[status page] clear cache if it is an important beat
This commit is contained in:
parent
5ce09953e2
commit
a15e9077fc
1 changed files with 4 additions and 0 deletions
|
@ -12,6 +12,7 @@ const { R } = require("redbean-node");
|
|||
const { BeanModel } = require("redbean-node/dist/bean-model");
|
||||
const { Notification } = require("../notification");
|
||||
const version = require("../../package.json").version;
|
||||
const apicache = require("../modules/apicache");
|
||||
|
||||
/**
|
||||
* status:
|
||||
|
@ -333,6 +334,9 @@ class Monitor extends BeanModel {
|
|||
console.log(e);
|
||||
}
|
||||
}
|
||||
|
||||
// Clear Status Page Cache
|
||||
apicache.clear();
|
||||
}
|
||||
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue