Browse Source

clear status page cache in a better place

cert-notification
Louis Lam 3 years ago
parent
commit
698a38e773
  1. 7
      server/model/monitor.js

7
server/model/monitor.js

@ -351,6 +351,10 @@ class Monitor extends BeanModel {
if (isImportant) {
bean.important = true;
await Monitor.sendNotification(isFirstBeat, this, bean);
// Clear Status Page Cache
apicache.clear();
} else {
bean.important = false;
}
@ -598,9 +602,6 @@ class Monitor extends BeanModel {
console.log(e);
}
}
// Clear Status Page Cache
apicache.clear();
}
}

Loading…
Cancel
Save