mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-21 08:07:59 +01:00
Merge pull request #434 from reasonerjt/master
do not scan for tags while refreshing cache
This commit is contained in:
commit
af1db227d9
@ -66,7 +66,7 @@ func RefreshCatalogCache() error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
/*
|
||||
repos := []string{}
|
||||
|
||||
for _, repo := range rs {
|
||||
@ -90,8 +90,9 @@ func RefreshCatalogCache() error {
|
||||
log.Debugf("add %s to catalog cache", repo)
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
Cache.Put(catalogKey, repos, 600*time.Second)
|
||||
Cache.Put(catalogKey, rs, 600*time.Second)
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user