Skip to content

Commit 6b7371c

Browse files
committed
introduce compiledYamlCache
1 parent 846d4b1 commit 6b7371c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/cubejs-schema-compiler/src/compiler/DataSchemaCompiler.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -749,12 +749,16 @@ export class DataSchemaCompiler {
749749

750750
this.compiledYamlCache.set(cacheKey, res.content);
751751

752+
this.compiledYamlCache.set(cacheKey, res.content);
753+
752754
return { ...file, content: res.content };
753755
} else {
754756
const transpiledFile = this.yamlCompiler.transpileYamlFile(file, errorsReport);
755757

756758
this.compiledYamlCache.set(cacheKey, transpiledFile?.content || '');
757759

760+
this.compiledYamlCache.set(cacheKey, transpiledFile?.content || '');
761+
758762
return transpiledFile;
759763
}
760764
}

0 commit comments

Comments
 (0)