From ba10aa3d7aa7d44ffe21d9679821e75099597490 Mon Sep 17 00:00:00 2001 From: Jeff Keen Date: Tue, 26 Mar 2024 16:34:14 -0500 Subject: [PATCH] use cache? --- lib/graphiti/renderer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/graphiti/renderer.rb b/lib/graphiti/renderer.rb index 288a5d4b..ee167a50 100644 --- a/lib/graphiti/renderer.rb +++ b/lib/graphiti/renderer.rb @@ -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