We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 802c809 commit 87cddfbCopy full SHA for 87cddfb
lib/graphql/fragment_cache/fragment.rb
@@ -75,6 +75,8 @@ def read_from_context
75
end
76
77
def value_from_cache
78
+ return nil unless FragmentCache.cache_store.exist?(cache_key)
79
+
80
FragmentCache.cache_store.read(cache_key).tap do |cached|
81
return NIL_IN_CACHE if cached.nil? && FragmentCache.cache_store.exist?(cache_key)
82
0 commit comments