Skip to content

Commit 9f7ad08

Browse files
committed
perf(schema-compiler): More aggressive compilers cleanup
1 parent 258be19 commit 9f7ad08

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/cubejs-server-core/src/core/CompilerApi.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,12 @@ export class CompilerApi {
5555
dispose() {
5656
if (this.compiledScriptCacheInterval) {
5757
clearInterval(this.compiledScriptCacheInterval);
58+
this.compiledScriptCacheInterval = null;
5859
}
60+
61+
this.compilers = undefined;
62+
this.queryFactory = undefined;
63+
this.graphqlSchema = undefined;
5964
}
6065

6166
setGraphQLSchema(schema) {

0 commit comments

Comments
 (0)