mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 19: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);
|
editMainPost(data, postData, next);
|
||||||
},
|
},
|
||||||
post: function(next) {
|
post: function(next) {
|
||||||
|
cache.del(postData.pid);
|
||||||
pubsub.publish('post:edit', postData.pid);
|
pubsub.publish('post:edit', postData.pid);
|
||||||
Posts.parsePost(postData, next);
|
Posts.parsePost(postData, next);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user