Commit 43704520 authored by 杨翌文's avatar 杨翌文

1

parent 4f1ac5b5
......@@ -868,16 +868,7 @@ exports.getAllThreadByFidNoLimit = function(conditions, pageNo, pageSize, sort,
//获取全部列表数据
exports.getAllThreadByFid = function(conditions, pageNo, pageSize, sort, callback) {
redis.get('query_1000000', function(err, page){
if (err || !page) {
getAllThreadByFidHelp(conditions, pageNo, pageSize, sort, function(err, obj){
redis.set('query_1000000', JSON.stringify(obj));
callback(err, obj);
});
} else {
callback(null, JSON.parse(page));
}
});
getAllThreadByFidHelp(conditions, pageNo, pageSize, sort, callback);
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment