Skip to content

Commit

Permalink
Add node.id to cache id to avoid cache collissions if the nodes have …
Browse files Browse the repository at this point in the history
…identical content fixes #4385
  • Loading branch information
KyleAMathews committed Mar 6, 2018
1 parent 9b8497d commit f75fa81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gatsby/src/schema/run-sift.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const { trackInlineObjectsInRootNode } = require(`./node-tracking`)
const enhancedNodeCache = new Map()
const enhancedNodeCacheId = ({ node, args }) =>
node && node.internal && node.internal.contentDigest
? `${node.internal.contentDigest}${JSON.stringify(args)}`
? `${node.id}${node.internal.contentDigest}${JSON.stringify(args)}`
: null

function awaitSiftField(fields, node, k) {
Expand Down

0 comments on commit f75fa81

Please sign in to comment.