Support extra cacheKey

This commit is contained in:
SukkaW
2024-09-02 20:46:10 +08:00
parent 4245fac2e1
commit 27c4004c0d
3 changed files with 9 additions and 4 deletions

View File

@@ -217,5 +217,5 @@ export const deserializeArray = (str: string) => str.split(separator);
export const createCacheKey = (filename: string) => {
const fileHash = stringHash(fs.readFileSync(filename, 'utf-8'));
return (key: string) => key + '$' + fileHash;
return (key: string) => key + '$' + fileHash + '$';
};