mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-24 07:14:04 +00:00
Fix #2880
This commit is contained in:
parent
0dce492226
commit
ce8eebc838
1 changed files with 4 additions and 0 deletions
|
@ -143,6 +143,7 @@ const { generalSocketHandler } = require("./socket-handlers/general-socket-handl
|
||||||
const { Settings } = require("./settings");
|
const { Settings } = require("./settings");
|
||||||
const { CacheableDnsHttpAgent } = require("./cacheable-dns-http-agent");
|
const { CacheableDnsHttpAgent } = require("./cacheable-dns-http-agent");
|
||||||
const { pluginsHandler } = require("./socket-handlers/plugins-handler");
|
const { pluginsHandler } = require("./socket-handlers/plugins-handler");
|
||||||
|
const apicache = require("./modules/apicache");
|
||||||
|
|
||||||
app.use(express.json());
|
app.use(express.json());
|
||||||
|
|
||||||
|
@ -884,6 +885,9 @@ let needSetup = false;
|
||||||
socket.userID,
|
socket.userID,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
// Fix #2880
|
||||||
|
apicache.clear();
|
||||||
|
|
||||||
callback({
|
callback({
|
||||||
ok: true,
|
ok: true,
|
||||||
msg: "Deleted Successfully.",
|
msg: "Deleted Successfully.",
|
||||||
|
|
Loading…
Reference in a new issue