Skip to content

Node.js based forum software built for the modern web

delete cache on current process first

barisusakli945a94f0ed74
diff --git a/src/posts/edit.js b/src/posts/edit.js
index d6fca5d738..9c8cbcdaac 100644
--- a/src/posts/edit.js
+++ b/src/posts/edit.js
@@ -63,6 +63,7 @@ module.exports = function(Posts) {
editMainPost(data, postData, next);
},
post: function(next) {
+ cache.del(postData.pid);
pubsub.publish('post:edit', postData.pid);
Posts.parsePost(postData, next);
}