diff --git a/pkg/cmd/factory/default.go b/pkg/cmd/factory/default.go index 2ba926033..61bbe2c54 100644 --- a/pkg/cmd/factory/default.go +++ b/pkg/cmd/factory/default.go @@ -5,6 +5,7 @@ import ( "fmt" "net/http" "os" + "time" "github.com/cli/cli/v2/api" "github.com/cli/cli/v2/context" @@ -161,7 +162,8 @@ func extensionManager(f *cmdutil.Factory) *extension.Manager { if err != nil { return em } - em.SetClient(client) + + em.SetClient(api.NewCachedClient(client, time.Second*30)) return em }