Explorar o código

fix:redis 缓存时间修改

duxin %!s(int64=3) %!d(string=hai) anos
pai
achega
6a7c104615
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/jfw/front/supsearch.go

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

@@ -433,7 +433,7 @@ func Newbids(p string) []interface{} {
 			}
 			pages = append(pages, data[sta:end])
 		}
-		redis.Put("newother", "index_list"+p, pages, 60*60*24*2)
+		redis.Put("newother", "index_list"+p, pages, 60*60*24)
 		pages, _ = redis.Get("newother", "index_list"+p).([]interface{})
 	}
 	return pages