mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-25 05:34:08 -08:00
[status page] clear cache if it is an important beat
This commit is contained in:
parent
5ce09953e2
commit
a15e9077fc
|
@ -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