Authored by yyq

base shop cache

@@ -46,7 +46,7 @@ const shop = (shopId, req, res, next, brandInfo) => { @@ -46,7 +46,7 @@ const shop = (shopId, req, res, next, brandInfo) => {
46 Object.assign(result, {page: 'list'}); 46 Object.assign(result, {page: 'list'});
47 47
48 // 基础店铺装修为空则不cache 48 // 基础店铺装修为空则不cache
49 - if (!result.shopTopBannerBase) { 49 + if (!result.brand || !result.brand.shopBanner) {
50 res.set('Cache-Control', 'no-cache'); 50 res.set('Cache-Control', 'no-cache');
51 } 51 }
52 res.render('list/brand', result); 52 res.render('list/brand', result);