mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
closes #3879
This commit is contained in:
@@ -24,7 +24,10 @@ module.exports = function(Posts) {
|
||||
if (err) {
|
||||
return callback(err);
|
||||
}
|
||||
cache.set(data.postData.pid, data.postData.content);
|
||||
|
||||
if (global.env === 'production') {
|
||||
cache.set(data.postData.pid, data.postData.content);
|
||||
}
|
||||
|
||||
callback(null, data.postData);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user