Skip to content

Commit

Permalink
Dissable level 1 cache for graphQL
Browse files Browse the repository at this point in the history
  • Loading branch information
heshanpadmasiri committed Nov 10, 2024
1 parent eb719c5 commit 1403d17
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,16 @@ public BType clone() {

@Override
public boolean shouldCache() {
return this.pkg != null && this.typeName != null && !this.typeName.contains("$anon");
if (this.pkg == null || this.typeName == null || this.pkg.getName() == null) {
return false;
}
if (this.typeName.contains("$anon")) {
return false;
}
if (this.pkg.getName().contains("graphql")) {
return false;
}
return true;
}

@Override
Expand Down

0 comments on commit 1403d17

Please sign in to comment.