delete cache on current process first

This commit is contained in:
barisusakli
2015-07-18 13:59:35 -04:00
parent a10dfc87cf
commit 945a94f0ed

View File

@@ -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);
}