From e88e10cc8e640af3d80674a9c624cac685874ba0 Mon Sep 17 00:00:00 2001 From: Louis Lam Date: Sun, 1 Jan 2023 21:43:39 +0800 Subject: [PATCH] Fix #2494 --- server/socket-handlers/maintenance-socket-handler.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server/socket-handlers/maintenance-socket-handler.js b/server/socket-handlers/maintenance-socket-handler.js index 5294050ca..929150cdd 100644 --- a/server/socket-handlers/maintenance-socket-handler.js +++ b/server/socket-handlers/maintenance-socket-handler.js @@ -244,6 +244,8 @@ module.exports.maintenanceSocketHandler = (socket) => { socket.userID, ]); + apicache.clear(); + callback({ ok: true, msg: "Deleted Successfully.", @@ -269,6 +271,8 @@ module.exports.maintenanceSocketHandler = (socket) => { maintenanceID, ]); + apicache.clear(); + callback({ ok: true, msg: "Paused Successfully.", @@ -294,6 +298,8 @@ module.exports.maintenanceSocketHandler = (socket) => { maintenanceID, ]); + apicache.clear(); + callback({ ok: true, msg: "Resume Successfully",