mirror of
https://github.com/lukaszraczylo/go-simple-graphql.git
synced 2026-10-18 01:27:25 +00:00
fixup! Finally - fixed the cache version for single query if its enabled via header.
This commit is contained in:
@@ -86,7 +86,7 @@ func (c *BaseClient) Query(queryContent string, queryVariables interface{}, quer
|
|||||||
if !reflect.DeepEqual(queryHeadersModified, queryHeaders) {
|
if !reflect.DeepEqual(queryHeadersModified, queryHeaders) {
|
||||||
if cacheBaseClient.cache.enabled != c.cache.enabled && cacheBaseClient.cache.enabled {
|
if cacheBaseClient.cache.enabled != c.cache.enabled && cacheBaseClient.cache.enabled {
|
||||||
cacheBaseClient.Logger.Debug(cacheBaseClient, "Switching cache on as per single-request header")
|
cacheBaseClient.Logger.Debug(cacheBaseClient, "Switching cache on as per single-request header")
|
||||||
cacheBaseClient.enableCache()
|
c.enableCache()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user