mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: #11357 clear cache on thumb remove
This commit is contained in:
@@ -151,6 +151,9 @@ Thumbs.delete = async function (id, relativePaths) {
|
|||||||
Promise.all(toRemove.map(async relativePath => posts.uploads.dissociate(mainPid, relativePath.slice(1)))),
|
Promise.all(toRemove.map(async relativePath => posts.uploads.dissociate(mainPid, relativePath.slice(1)))),
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
if (toRemove.length) {
|
||||||
|
cache.del(set);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
Thumbs.deleteAll = async (id) => {
|
Thumbs.deleteAll = async (id) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user