Merge pull request #434 from reasonerjt/master

do not scan for tags while refreshing cache
This commit is contained in:
Daniel Jiang 2016-06-28 18:23:23 +08:00 committed by GitHub
commit af1db227d9

View File

@ -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
}