Skip to content

Commit d56acae

Browse files
commands: change cacheKey
1 parent e55549e commit d56acae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

commands/service_board_identify.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ var (
137137
func cachedAPIByVidPid(ctx context.Context, vid, pid string, settings *configuration.Settings) ([]*rpc.BoardListItem, error) {
138138
var resp []*rpc.BoardListItem
139139

140-
cacheKey := fmt.Sprintf("cache.builder-api.v3/boards/byvid/pid/%s/%s", vid, pid)
140+
cacheKey := fmt.Sprintf("cache.api2.arduino.cc/boards/v1/boards?vid-pid=%s-%s", vid, pid)
141141
if cachedResp := inventory.Store.GetString(cacheKey + ".data"); cachedResp != "" {
142142
ts := inventory.Store.GetTime(cacheKey + ".ts")
143143
if time.Since(ts) < time.Hour*24 {

0 commit comments

Comments
 (0)