feat: clean cache upon indexer setting changes

This commit is contained in:
Simon Ding
2024-10-10 09:21:33 +08:00
parent 19f21ddd6e
commit e0d0ab80b6
3 changed files with 17 additions and 5 deletions

View File

@@ -9,6 +9,7 @@ import (
"polaris/ent/downloadclients"
"polaris/log"
"polaris/pkg/qbittorrent"
"polaris/pkg/torznab"
"polaris/pkg/transmission"
"polaris/pkg/utils"
"strconv"
@@ -171,6 +172,8 @@ func (s *Server) AddTorznabInfo(c *gin.Context) (interface{}, error) {
if err != nil {
return nil, errors.Wrap(err, "add ")
}
torznab.CleanCache() //need to clean exist cache, so next request will do actaul query
return nil, nil
}