From ce8eebc838ba3fff5fb36c87c1d93d831c88b7b1 Mon Sep 17 00:00:00 2001 From: Louis Lam Date: Sun, 5 Mar 2023 15:59:43 +0800 Subject: [PATCH] Fix #2880 --- server/server.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/server.js b/server/server.js index b7308a5ab..d7fd1398b 100644 --- a/server/server.js +++ b/server/server.js @@ -143,6 +143,7 @@ const { generalSocketHandler } = require("./socket-handlers/general-socket-handl const { Settings } = require("./settings"); const { CacheableDnsHttpAgent } = require("./cacheable-dns-http-agent"); const { pluginsHandler } = require("./socket-handlers/plugins-handler"); +const apicache = require("./modules/apicache"); app.use(express.json()); @@ -884,6 +885,9 @@ let needSetup = false; socket.userID, ]); + // Fix #2880 + apicache.clear(); + callback({ ok: true, msg: "Deleted Successfully.",