module SuperHttpCache
Public Instance Methods
request(*args, &block)
click to toggle source
Calls superclass method
# File lib/supercache/super_http_cache.rb, line 3 def request(*args, &block) if Rails.cache.read(:http_supercache) Rails.cache.fetch(Digest::SHA1.hexdigest(args[0].path.to_s + args[0].body.to_s)) do super(*args, &block) end else super(*args, &block) end end