Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/graphql/fragment_cache/fragment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ def read_from_context
end

def value_from_cache
return nil unless FragmentCache.cache_store.exist?(cache_key)

FragmentCache.cache_store.read(cache_key).tap do |cached|
return NIL_IN_CACHE if cached.nil? && FragmentCache.cache_store.exist?(cache_key)
end
Expand Down
Loading