fixup! Finally - fixed the cache version for single query if its enabled via header.

This commit is contained in:
2023-04-08 03:29:35 +01:00
parent 55182f2f3d
commit 4d0c04cb26
+1 -1
View File
@@ -86,7 +86,7 @@ func (c *BaseClient) Query(queryContent string, queryVariables interface{}, quer
if !reflect.DeepEqual(queryHeadersModified, queryHeaders) {
if cacheBaseClient.cache.enabled != c.cache.enabled && cacheBaseClient.cache.enabled {
cacheBaseClient.Logger.Debug(cacheBaseClient, "Switching cache on as per single-request header")
cacheBaseClient.enableCache()
c.enableCache()
}
}
}