fix: #11357 clear cache on thumb remove

isekai-main
Barış Soner Uşaklı 2 years ago
parent ae53a6e046
commit 1e7f32b1c4

@ -151,6 +151,9 @@ Thumbs.delete = async function (id, relativePaths) {
Promise.all(toRemove.map(async relativePath => posts.uploads.dissociate(mainPid, relativePath.slice(1)))),
]);
}
if (toRemove.length) {
cache.del(set);
}
};
Thumbs.deleteAll = async (id) => {

Loading…
Cancel
Save