cache_key reduced to 32 chars

This commit is contained in:
erwanlr
2013-03-04 11:20:20 +01:00
parent ae76db5238
commit 2453ad7ace

View File

@@ -24,7 +24,7 @@ module Typhoeus
class Request
module Cacheable
def cache_key
Digest::SHA2.hexdigest("#{url}-#{options[:body]}-#{options[:method]}")
Digest::SHA2.hexdigest("#{url}-#{options[:body]}-#{options[:method]}")[0..32]
end
end
end