We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b202a13 + e523bfe commit 68e91b7Copy full SHA for 68e91b7
1 file changed
src/Linq2GraphQL.Client/GraphClient.cs
@@ -11,8 +11,7 @@ public class GraphClient
11
{
12
private readonly IMemoryCache cache;
13
private readonly IOptions<GraphClientOptions> options;
14
- private Guid clientId = Guid.NewGuid();
15
-
+
16
public GraphClient(HttpClient httpClient, IOptions<GraphClientOptions> options, IServiceProvider provider)
17
18
this.options = options;
@@ -65,7 +64,7 @@ public async Task<GraphQLSchema> GetSchemaForSafeModeAsync()
65
64
return null;
66
}
67
68
- var cackeKey = "Linq2GraphQL_Schema_" + clientId;
+ var cackeKey = "Linq2GraphQL_Schema:" + HttpClient.BaseAddress;
69
70
return await cache.GetOrCreateAsync(cackeKey, async entry =>
71
0 commit comments