We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
yyx990803
kiaking
brc-dd
posva
Learn more about funding links in repositories.
Report abuse
1 parent bb41a9f commit 1daeaa1Copy full SHA for 1daeaa1
src/node/markdownToVue.ts
@@ -43,8 +43,9 @@ export async function createMarkdownToVueRenderFn(
43
): Promise<MarkdownCompileResult> => {
44
const relativePath = slash(path.relative(srcDir, file))
45
const dir = path.dirname(file)
46
+ const cacheKey = JSON.stringify({ src, file })
47
- const cached = cache.get(src)
48
+ const cached = cache.get(cacheKey)
49
if (cached) {
50
debug(`[cache hit] ${relativePath}`)
51
return cached
@@ -148,7 +149,7 @@ export async function createMarkdownToVueRenderFn(
148
149
deadLinks,
150
includes
151
}
- cache.set(src, result)
152
+ cache.set(cacheKey, result)
153
return result
154
155
0 commit comments