cache.js 864 Bytes

'use strict';

const SECOND = 1;
const MINUTE = 60 * SECOND;

const cachePage = {
    '/': 5 * MINUTE,

    // 频道页
    '/boys': 30 * SECOND,
    '/woman': 30 * SECOND,
    '/kids': 30 * SECOND,
    '/lifestyle': 30 * SECOND,

    // 商品详情页
    '/product/\/pro_([\d]+)_([\d]+)\/(.*)/': 30 * MINUTE,

    // 逛
    '/guang': 1 * MINUTE,
    '/guang/info/index': 10 * MINUTE,
    '/guang/author/index': 1 * MINUTE,
    '/guang/tags/index': 1 * MINUTE,

    // 领券中心
    '/activity/coupon/floor': 5 * MINUTE,

    // 商品列表
    '/product/list/index': 5 * MINUTE,
    '/product/index/index': 5 * MINUTE,

    // 秒杀列表
    '/product/seckill': 30 * SECOND,

    // 秒杀详情

    // sale
    '/product/sale': 5 * MINUTE,

    '/product/outlet': 30 * SECOND,

    '/product/index/brand': 2 * MINUTE

};

module.exports = cachePage;