File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -168,15 +168,15 @@ function Get-GQL
168
168
$Cache = $true
169
169
}
170
170
171
+ $queryCacheKey = " $gqlQuery $ ( if ($Parameter ) { $Parameter | ConvertTo-Json - Depth 10 }) "
171
172
if ($Cache -and -not $script :GraphQLOutputCache ) {
172
173
$script :GraphQLOutputCache = [Ordered ]@ {}
173
174
}
174
175
175
- if ($script :GraphQLOutputCache .$gqlQuery -and
176
- -not $Parameter.Count -and
176
+ if ($script :GraphQLOutputCache .$queryCacheKey -and
177
177
-not $Refresh
178
178
) {
179
- $script :GraphQLOutputCache .$gqlQuery
179
+ $script :GraphQLOutputCache .$queryCacheKey
180
180
continue nextQuery
181
181
}
182
182
@@ -240,7 +240,7 @@ function Get-GQL
240
240
}
241
241
}
242
242
if ($Cache ) {
243
- $script :GraphQLOutputCache [$gqlQuery ] = $gqlOutput
243
+ $script :GraphQLOutputCache [$queryCacheKey ] = $gqlOutput
244
244
}
245
245
if ($queryOutPath ) {
246
246
New-Item - ItemType File - Path $queryOutPath - Force - Value (
You can’t perform that action at this time.
0 commit comments