test detail page cache 10s
Showing
2 changed files
with
1 additions
and
3 deletions
@@ -14,7 +14,7 @@ const cachePage = { | @@ -14,7 +14,7 @@ const cachePage = { | ||
14 | '/lifestyle': 30 * SECOND, | 14 | '/lifestyle': 30 * SECOND, |
15 | 15 | ||
16 | // 商品详情页 | 16 | // 商品详情页 |
17 | - '/product/\\/pro_([\\d]+)_([\\d]+)\\/(.*)/': 30 * MINUTE, | 17 | + '/product/\\/pro_([\\d]+)_([\\d]+)\\/(.*)/': 10 * SECOND, |
18 | 18 | ||
19 | // 逛 | 19 | // 逛 |
20 | '/guang': 1 * MINUTE, | 20 | '/guang': 1 * MINUTE, |
@@ -2,9 +2,7 @@ | @@ -2,9 +2,7 @@ | ||
2 | 'use strict'; | 2 | 'use strict'; |
3 | 3 | ||
4 | const path = require('path'); | 4 | const path = require('path'); |
5 | -const _ = require('lodash'); | ||
6 | const cachePage = require('../../config/cache'); | 5 | const cachePage = require('../../config/cache'); |
7 | -const md5 = require('md5'); | ||
8 | 6 | ||
9 | module.exports = () => { | 7 | module.exports = () => { |
10 | return (req, res, next) => { | 8 | return (req, res, next) => { |
-
Please register or login to post a comment