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

pull/614/head
LouisLam 3 years ago
parent 5ce09953e2
commit a15e9077fc

@ -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 {

Loading…
Cancel
Save