Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ export class DataSchemaCompiler {
errorsReport: ErrorReporter,
{ cubeNames, cubeSymbols, compilerId, jinjaUsed }: TranspileOptions
): Promise<(FileContent | undefined)> {
const cacheKey = crypto.createHash('md5').update(JSON.stringify(file.content)).digest('hex');
const cacheKey = crypto.createHash('md5').update(file.content).digest('hex');

if (this.compiledYamlCache.has(cacheKey)) {
const content = this.compiledYamlCache.get(cacheKey)!;
Expand Down Expand Up @@ -779,7 +779,7 @@ export class DataSchemaCompiler {
errorsReport: ErrorReporter,
options: TranspileOptions
): Promise<(FileContent | undefined)> {
const cacheKey = crypto.createHash('md5').update(JSON.stringify(file.content)).digest('hex');
const cacheKey = crypto.createHash('md5').update(file.content).digest('hex');

let renderedFileContent: string;

Expand Down Expand Up @@ -861,7 +861,7 @@ export class DataSchemaCompiler {
}

private getJsScript(file: FileContent): vm.Script {
const cacheKey = crypto.createHash('md5').update(JSON.stringify(file.content)).digest('hex');
const cacheKey = crypto.createHash('md5').update(file.content).digest('hex');

if (this.compiledScriptCache.has(cacheKey)) {
return this.compiledScriptCache.get(cacheKey)!;
Expand Down
Loading