diff --git a/src/posts/parse.js b/src/posts/parse.js index efc675b1c9..4d18f9dd7f 100644 --- a/src/posts/parse.js +++ b/src/posts/parse.js @@ -25,7 +25,7 @@ module.exports = function(Posts) { return callback(err); } - if (global.env === 'production') { + if (global.env === 'production' && data.postData.pid) { cache.set(data.postData.pid, data.postData.content); }