From a15e9077fc5f7fea6630ba27f5783f1822b90b05 Mon Sep 17 00:00:00 2001 From: LouisLam Date: Sat, 9 Oct 2021 17:04:51 +0800 Subject: [PATCH] [status page] clear cache if it is an important beat --- server/model/monitor.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/model/monitor.js b/server/model/monitor.js index 0e2d84ede..9089b8306 100644 --- a/server/model/monitor.js +++ b/server/model/monitor.js @@ -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 {