From e75adf9eec42591db54af1319a0064448614562f Mon Sep 17 00:00:00 2001 From: Yuxuan Zhang Date: Fri, 5 Jan 2024 18:00:48 -0500 Subject: [PATCH] revert irrelevant change --- src/node/markdownToVue.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/node/markdownToVue.ts b/src/node/markdownToVue.ts index 0b102f43..fd3b0d88 100644 --- a/src/node/markdownToVue.ts +++ b/src/node/markdownToVue.ts @@ -72,17 +72,10 @@ export async function createMarkdownToVueRenderFn( const cacheKey = JSON.stringify({ src, file: fileOrig }) if (isBuild || options.cache !== false) { - const metrics = { - lookUpTime: performance.now(), - keyLength: cacheKey.length - } const cached = cache.get(cacheKey) - metrics.lookUpTime = performance.now() - metrics.lookUpTime if (cached) { - debug(`[cache hit] ${relativePath} ${JSON.stringify(metrics)}`) + debug(`[cache hit] ${relativePath}`) return cached - } else { - debug(`[cache miss] ${relativePath} ${JSON.stringify(metrics)}`) } }