Node.js based forum software built for the modern web
check pid before setting cache
barisusakli9f48d3e6d23b
diff --git a/src/posts/parse.js b/src/posts/parse.jsindex 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);}