Authored by 邱骏

Merge remote-tracking branch 'origin/hotfix/zeroCache' into feature/yohood

... ... @@ -13,8 +13,8 @@ const TABLE_ACT_PRIZE_PRODUCT_CONTENT = 'act_prize_product_content';
const TABLE_ACT_PRIZE_PRODUCT_USER = 'act_prize_product_user';
const MINUTE_TIMES = 60;
const PRODUCT_CACHE_TIMES = MINUTE_TIMES * 5; // 商品(列表&详情)缓存时间
const RECENT_CODE_CACHE_TIME = MINUTE_TIMES; // 最近获取记录缓存时间
const PRODUCT_CACHE_TIMES = MINUTE_TIMES / 6; // 商品(列表&详情)缓存时间
const RECENT_CODE_CACHE_TIME = MINUTE_TIMES / 12; // 最近获取记录缓存时间
const MAX_JOIN_TIMES = 5; // 最大活动参与次数
const MAX_RECOMEND_NUM = 10; // 最大推荐活动数目
const PAGE_SIZE = 10;
... ... @@ -303,7 +303,7 @@ module.exports = class extends global.yoho.BaseModel {
let info = await Promise.all([
mysqlCli.query(`select * from ${TABLE_ACT_PRIZE_PRODUCT}
where id = :actPrizeId limit 1;`, {actPrizeId}, {cache: MINUTE_TIMES / 2}),
where id = :actPrizeId limit 1;`, {actPrizeId}, {cache: PRODUCT_CACHE_TIMES}),
this.getUserJoinNum(actPrizeId, true).then(result => {
return result.data;
})
... ...