revert irrelevant change

pull/3386/head
Yuxuan Zhang 2 years ago
parent 93aff9f435
commit e75adf9eec
No known key found for this signature in database
GPG Key ID: 6910B04F3351EF7D

@ -72,17 +72,10 @@ export async function createMarkdownToVueRenderFn(
const cacheKey = JSON.stringify({ src, file: fileOrig }) const cacheKey = JSON.stringify({ src, file: fileOrig })
if (isBuild || options.cache !== false) { if (isBuild || options.cache !== false) {
const metrics = {
lookUpTime: performance.now(),
keyLength: cacheKey.length
}
const cached = cache.get(cacheKey) const cached = cache.get(cacheKey)
metrics.lookUpTime = performance.now() - metrics.lookUpTime
if (cached) { if (cached) {
debug(`[cache hit] ${relativePath} ${JSON.stringify(metrics)}`) debug(`[cache hit] ${relativePath}`)
return cached return cached
} else {
debug(`[cache miss] ${relativePath} ${JSON.stringify(metrics)}`)
} }
} }

Loading…
Cancel
Save