Skip to content

Node.js based forum software built for the modern web

closes #3879

barisusakli1b7ca555e09d
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);
});