Skip to content

Commit

Permalink
fix: #11357 clear cache on thumb remove
Browse files Browse the repository at this point in the history
  • Loading branch information
barisusakli committed Mar 14, 2023
1 parent cfd5027 commit a3a38e4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/topics/thumbs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit a3a38e4

Please sign in to comment.