Authored by 姜枫

test detail page cache 10s

... ... @@ -14,7 +14,7 @@ const cachePage = {
'/lifestyle': 30 * SECOND,
// 商品详情页
'/product/\\/pro_([\\d]+)_([\\d]+)\\/(.*)/': 30 * MINUTE,
'/product/\\/pro_([\\d]+)_([\\d]+)\\/(.*)/': 10 * SECOND,
// 逛
'/guang': 1 * MINUTE,
... ...
... ... @@ -2,9 +2,7 @@
'use strict';
const path = require('path');
const _ = require('lodash');
const cachePage = require('../../config/cache');
const md5 = require('md5');
module.exports = () => {
return (req, res, next) => {
... ...