mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-28 09:36:16 +01:00
fix: clear cache on sort
This commit is contained in:
@@ -125,6 +125,7 @@ SocketModules.chats.sortPublicRooms = async function (socket, data) {
|
|||||||
throw new Error('[[error:no-privileges]]');
|
throw new Error('[[error:no-privileges]]');
|
||||||
}
|
}
|
||||||
await db.sortedSetAdd(`chat:rooms:public:order`, data.scores, data.roomIds);
|
await db.sortedSetAdd(`chat:rooms:public:order`, data.scores, data.roomIds);
|
||||||
|
require('../cache').del(`chat:rooms:public:order:all`);
|
||||||
};
|
};
|
||||||
|
|
||||||
SocketModules.chats.searchMembers = async function (socket, data) {
|
SocketModules.chats.searchMembers = async function (socket, data) {
|
||||||
|
|||||||
Reference in New Issue
Block a user