We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1853f3b commit 1fe3f2dCopy full SHA for 1fe3f2d
packages/gatsby-transformer-remark/src/extend-node-type.js
@@ -364,15 +364,16 @@ module.exports = function remarkExtendNodeType(
364
}
365
366
async function getHTMLAst(markdownNode) {
367
- const cachedAst = await cache.get(htmlAstCacheKey(markdownNode))
+ const key = htmlAstCacheKey(markdownNode)
368
+ const cachedAst = await cache.get(key)
369
if (cachedAst) {
370
return cachedAst
371
} else {
372
const ast = await getAST(markdownNode, cache)
373
const htmlAst = markdownASTToHTMLAst(ast)
374
375
// Save new HTML AST to cache and return
- await cache.set(htmlAstCacheKey(markdownNode), htmlAst)
376
+ await cache.set(key, htmlAst)
377
return htmlAst
378
379
0 commit comments