MCPcopy
hub / github.com/nuxt/nuxt / restoreCache

Function restoreCache

packages/nuxt/src/core/cache.ts:57–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55 consola.success(`Cached Vue client and server builds in \`${elapsed}ms\`.`)
56 },
57 async restoreCache () {
58 const start = Date.now()
59 const res = await restoreCacheFromFile(nuxt.options.buildDir, cacheFile)
60 const elapsed = Date.now() - start
61 if (res) {
62 consola.success(`Restored Vue client and server builds from cache in \`${elapsed}ms\`.`)
63 }
64 return res
65 },
66 }
67}
68

Callers 1

buildFunction · 0.85

Calls 1

restoreCacheFromFileFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…