mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Moved LINKER_CACHE_SALT into cacheKeySuffix part of cache filename hash.
This commit is contained in:
@@ -1294,7 +1294,6 @@ export class PackageSourceBatch {
|
||||
|
||||
const fileHashes = [];
|
||||
const cacheKeyPrefix = sha1(JSON.stringify({
|
||||
LINKER_CACHE_SALT,
|
||||
linkerOptions,
|
||||
files: jsResources.map((inputFile) => {
|
||||
fileHashes.push(inputFile.hash);
|
||||
@@ -1308,7 +1307,10 @@ export class PackageSourceBatch {
|
||||
};
|
||||
})
|
||||
}));
|
||||
const cacheKeySuffix = sha1(JSON.stringify(fileHashes));
|
||||
const cacheKeySuffix = sha1(JSON.stringify({
|
||||
LINKER_CACHE_SALT,
|
||||
fileHashes
|
||||
}));
|
||||
const cacheKey = `${cacheKeyPrefix}_${cacheKeySuffix}`;
|
||||
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user