mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-30 18:46:01 +01:00
delete cache on current process first
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user