cache_key reduced to 32 chars
This commit is contained in:
@@ -24,7 +24,7 @@ module Typhoeus
|
|||||||
class Request
|
class Request
|
||||||
module Cacheable
|
module Cacheable
|
||||||
def cache_key
|
def cache_key
|
||||||
Digest::SHA2.hexdigest("#{url}-#{options[:body]}-#{options[:method]}")
|
Digest::SHA2.hexdigest("#{url}-#{options[:body]}-#{options[:method]}")[0..32]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user