MCPcopy Index your code
hub / github.com/facebook/docusaurus / getCacheVersion

Function getCacheVersion

packages/docusaurus/src/webpack/base.ts:104–109  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

102
103 // When the version string changes, the cache is evicted
104 function getCacheVersion() {
105 // Because Webpack does not evict the cache on alias/swizzle changes,
106 // See https://github.com/webpack/webpack/issues/13627
107 const themeAliasesHash = md5Hash(JSON.stringify(themeAliases));
108 return `${siteMetadata.docusaurusVersion}-${themeAliasesHash}`;
109 }
110
111 // When one of those modules/dependencies change (including transitive
112 // deps), cache is invalidated

Callers 2

getCacheFunction · 0.85
getExperimentsFunction · 0.85

Calls 1

md5HashFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…