Update search.go
Cette révision appartient à :
Parent
67ab9dfa8c
révision
8f285c8414
1 fichiers modifiés avec 5 ajouts et 0 suppressions
|
@ -73,6 +73,11 @@ func ByQuery(c *gin.Context, pagenum int, withUser bool, deleted bool, hidden bo
|
||||||
torrentParam.Hidden = hidden
|
torrentParam.Hidden = hidden
|
||||||
torrentParam.Full = withUser
|
torrentParam.Full = withUser
|
||||||
torrentParam.Deleted = deleted
|
torrentParam.Deleted = deleted
|
||||||
|
|
||||||
|
if torrentParam.Abort {
|
||||||
|
return torrentParam, []models.Torrent{}, 0, nil
|
||||||
|
}
|
||||||
|
|
||||||
if found, ok := cache.C.Get(torrentParam.Identifier()); ok {
|
if found, ok := cache.C.Get(torrentParam.Identifier()); ok {
|
||||||
log.Infof("Retrieve results from Cache in %s", torrentParam.Identifier())
|
log.Infof("Retrieve results from Cache in %s", torrentParam.Identifier())
|
||||||
torrentCache := found.(*TorrentCache)
|
torrentCache := found.(*TorrentCache)
|
||||||
|
|
Référencer dans un nouveau ticket