lib/billy/cache.rb in puffing-billy-3.0.2 vs lib/billy/cache.rb in puffing-billy-3.0.3
- old
+ new
@@ -13,9 +13,11 @@
def initialize
reset
end
def cached?(method, url, body)
+ return false unless Billy.config.cache
+
# Only log the key the first time it's looked up (in this method)
key = key(method, url, body, true)
!@cache[key].nil? || persisted?(key)
end