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

加上版块列表缓存

parent 3aa04bc0
......@@ -37,6 +37,8 @@ router.get('/info/list/all', function(req, res, next) {
res.json(returnCode.BUSY);
} else {
rs.data = datas.items;
res.setHeader('Cache-Control', 'public, max-age=3600'); // 公共缓存一个小时
res.setHeader('Expires', new Date(Date.now() + 600000).toUTCString());
res.json(_.assign(rs, returnCode.SUCCESS));
}
});
......
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