[status page] clear cache if it is an important beat

This commit is contained in:
LouisLam 2021-10-09 17:04:51 +08:00
parent 5ce09953e2
commit a15e9077fc

View file

@ -12,6 +12,7 @@ const { R } = require("redbean-node");
const { BeanModel } = require("redbean-node/dist/bean-model"); const { BeanModel } = require("redbean-node/dist/bean-model");
const { Notification } = require("../notification"); const { Notification } = require("../notification");
const version = require("../../package.json").version; const version = require("../../package.json").version;
const apicache = require("../modules/apicache");
/** /**
* status: * status:
@ -333,6 +334,9 @@ class Monitor extends BeanModel {
console.log(e); console.log(e);
} }
} }
// Clear Status Page Cache
apicache.clear();
} }
} else { } else {