|
|
@ -156,7 +156,7 @@ var cache = LRU({
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (isDelete) {
|
|
|
|
if (isDelete) {
|
|
|
|
cache.del(postData.pid);
|
|
|
|
cache.del(pid);
|
|
|
|
posts.delete(pid, callback);
|
|
|
|
posts.delete(pid, callback);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
posts.restore(pid, function(err, postData) {
|
|
|
|
posts.restore(pid, function(err, postData) {
|
|
|
|