From 1b7ca555e09d50368f030a5327dc4d8b0050ce4d Mon Sep 17 00:00:00 2001 From: barisusakli Date: Mon, 16 Nov 2015 16:51:19 -0500 Subject: [PATCH] closes #3879 --- src/posts/parse.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/posts/parse.js b/src/posts/parse.js index 486c961554..efc675b1c9 100644 --- a/src/posts/parse.js +++ b/src/posts/parse.js @@ -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); });