Skip to content

Commit

Permalink
use cache?
Browse files Browse the repository at this point in the history
  • Loading branch information
jkeen committed Mar 26, 2024
1 parent 296b80d commit ba10aa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/graphiti/renderer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def render(renderer)
options[:meta][:debug] = Debugger.to_a if debug_json?
options[:proxy] = proxy

if proxy.cache? && Graphiti.config.cache
if proxy.cache? && Graphiti.config.cache?
Graphiti.cache.fetch("graphiti:render/#{proxy.cache_key}", version: proxy.updated_at, expires_in: proxy.cache_expires_in) do
# Try to get some debug information about the cache key to find out if a query cache isn't stable
url = Graphiti.context[:object].request.url
Expand Down

0 comments on commit ba10aa3

Please sign in to comment.