lib/typhoeus/hydra/cacheable.rb in typhoeus-0.6.6 vs lib/typhoeus/hydra/cacheable.rb in typhoeus-0.6.7

- old
+ new

@@ -1,9 +1,10 @@ module Typhoeus class Hydra module Cacheable def add(request) if request.cacheable? && response = Typhoeus::Config.cache.get(request) + response.cached = true request.finish(response) dequeue else super end