diff --git a/server/socket-handlers/maintenance-socket-handler.js b/server/socket-handlers/maintenance-socket-handler.js index 5294050c..929150cd 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",