Compare commits

...

11 Commits

Author SHA1 Message Date
Julian Lam
6d9adac6e4 fixed LRU cache problem 2015-11-26 23:35:15 -05:00
Julian Lam
f0c4052725 updated shrinkwrap file 2015-11-26 23:30:42 -05:00
Julian Lam
57b033b6d1 Merge branch 'master' into v0.9.x 2015-11-26 23:28:48 -05:00
Barış Soner Uşaklı
4d13fb6809 disable post cache on prod, dont set it if no pid 2015-11-26 18:03:41 -05:00
Julian Lam
cee3918e9b fixing crash on settings save 2015-11-08 11:58:06 -05:00
Julian Lam
05ef18fb2e Merge branch 'master' into v0.9.x 2015-11-07 11:30:49 -05:00
Julian Lam
101228711f Merge branch 'master' into v0.9.x 2015-11-07 10:41:29 -05:00
Julian Lam
79c0049922 updated shrinkwrap file 2015-11-06 17:43:22 -05:00
Julian Lam
7945ae071b Merge branch 'master' into v0.9.x 2015-11-06 17:41:11 -05:00
Julian Lam
e911256c9c 0.9.0 2015-11-06 16:08:59 -05:00
Julian Lam
15cf2f58b4 updated shrinkwrap file 2015-11-06 16:07:31 -05:00
2 changed files with 4134 additions and 4 deletions

4131
npm-shrinkwrap.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -9,9 +9,8 @@ module.exports = function(Posts) {
Posts.parsePost = function(postData, callback) {
postData.content = postData.content || '';
var cachedContent = cache.get(postData.pid);
if (cachedContent) {
postData.content = cachedContent;
if (postData.pid && cache.has(postData.pid)) {
postData.content = cache.get(postData.pid);
return callback(null, postData);
}
@@ -38,4 +37,4 @@ module.exports = function(Posts) {
plugins.fireHook('filter:parse.signature', {userData: userData, uid: uid}, callback);
};
};
};