|
@@ -64,7 +64,7 @@ func (i *Index) LoadIndex() error {
|
|
|
"query": i.GetString("query")}
|
|
|
data, pagination := searhWebContent(querymap)
|
|
|
content, _ := i.Render4Cache("/index.html", &xweb.T{"data": data, "pagination": pagination})
|
|
|
- //redis.Put("other", "/", string(content), 0) //设置首页缓存
|
|
|
+ redis.Put("other", "/", string(content), 0) //设置首页缓存
|
|
|
return i.SetBody(content)
|
|
|
}
|
|
|
}
|