浏览代码

fix:导航缓存时间修改

duxin 4 月之前
父节点
当前提交
faca325b49
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. 2 1
      src/config.json
  2. 1 1
      src/jfw/front/tags.go

+ 2 - 1
src/config.json

@@ -489,5 +489,6 @@
       "search": "建筑/环境",
       "code": "16"
     }
-  ]
+  ],
+  "levelCacheTime": 259200
 }

+ 1 - 1
src/jfw/front/tags.go

@@ -513,7 +513,7 @@ func (this *Tags) GetNewBidInfo() (list []map[string]interface{}) {
 	}
 	var bidInfosToCache = func(list []map[string]interface{}) {
 		redis.Put("seoCache", redisKey, list, cacheTime)
-		ok := redis.Put("seoCache", redisKeySL, list, -1)
+		ok := redis.Put("seoCache", redisKeySL, list, qu.IntAll(config.Sysconfig["levelCacheTime"]))
 		log.Println(redisKeySL, "--00--", ok)
 	}
 	list = bidInfosByCache(redisKey)