Skip to content

Commit

Permalink
Fix caching
Browse files Browse the repository at this point in the history
  • Loading branch information
milanvarady committed Jan 9, 2025
1 parent 6c43d65 commit f80b30b
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ extension CaskManager {
caskData = try await loadDataFromCache(dataURL: Self.caskCacheURL)
}

// Chache json file
await cacheData(data: caskData, to: Self.caskCacheURL)

// Decode static cask data
async let casks = try JSONDecoder().decode([CaskInfo].self, from: caskData)

Expand Down

0 comments on commit f80b30b

Please sign in to comment.