Browse Source

feat:缓存时间调整

fuwencai 2 năm trước cách đây
mục cha
commit
0c8d303ed3
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/jfw/modules/app/src/app/jyutil/tags.go

+ 1 - 1
src/jfw/modules/app/src/app/jyutil/tags.go

@@ -462,7 +462,7 @@ func (b *BiddingInfo) GetBiddingInfo(types, name string, currentLocation []*SeoI
 			}
 			b, err := json.Marshal(birt)
 			if err == nil && len(b) > 0 {
-				if err := redis.PutBytes("seoCache", redisKey, &b, qu.IntAll(config.Seoconfig["cacheTime"])+RandNum.Intn(randCount)); err != nil {
+				if err := redis.PutBytes("seoCache", redisKey, &b, qu.IntAll(config.Seoconfig["biddingCacheTime"])+RandNum.Intn(randCount)); err != nil {
 					log.Println(err)
 				}
 			}