From 945a94f0ed747ece2d92045513d242aa07806de8 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Sat, 18 Jul 2015 13:59:35 -0400 Subject: [PATCH] delete cache on current process first --- src/posts/edit.js | 1 + 1 file changed, 1 insertion(+) 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); }