Skip to content

Commit aa936f9

Browse files
committed
Fixed tests.
1 parent 4b4edfe commit aa936f9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

graphql-java-servlet/src/main/java/graphql/kickstart/servlet/HttpRequestHandlerImpl.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,10 @@ private void execute(GraphQLInvocationInput invocationInput, HttpServletRequest
5252
HttpServletResponse response) {
5353
try {
5454
// try to return value from cache if cache manager was set, otherwise processed the query
55-
if (configuration.getResponseCacheManager() != null &&
56-
!CacheReader.responseFromCache(invocationInput, request, response, configuration.getResponseCacheManager())) {
55+
boolean returnedFromCache = configuration.getResponseCacheManager() != null &&
56+
!CacheReader.responseFromCache(invocationInput, request, response, configuration.getResponseCacheManager());
57+
58+
if (!returnedFromCache) {
5759
GraphQLQueryResult queryResult = invoke(invocationInput, request, response);
5860

5961
QueryResponseWriter queryResponseWriter = QueryResponseWriter.createWriter(

0 commit comments

Comments
 (0)