Showing
2 changed files
with
3 additions
and
1 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]+)\\/(.*)/': 30 * MINUTE, |
18 | 18 | ||
19 | // 逛 | 19 | // 逛 |
20 | '/guang': 1 * MINUTE, | 20 | '/guang': 1 * MINUTE, |
@@ -2,7 +2,9 @@ | @@ -2,7 +2,9 @@ | ||
2 | 'use strict'; | 2 | 'use strict'; |
3 | 3 | ||
4 | const path = require('path'); | 4 | const path = require('path'); |
5 | +const _ = require('lodash'); | ||
5 | const cachePage = require('../../config/cache'); | 6 | const cachePage = require('../../config/cache'); |
7 | +const md5 = require('md5'); | ||
6 | 8 | ||
7 | module.exports = () => { | 9 | module.exports = () => { |
8 | return (req, res, next) => { | 10 | return (req, res, next) => { |
-
Please register or login to post a comment