From 2453ad7ace3f87154638fbb852d3441128199ba1 Mon Sep 17 00:00:00 2001 From: erwanlr Date: Mon, 4 Mar 2013 11:20:20 +0100 Subject: [PATCH] cache_key reduced to 32 chars --- lib/common/typhoeus_cache.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/common/typhoeus_cache.rb b/lib/common/typhoeus_cache.rb index 14f65a0a..a3039c26 100644 --- a/lib/common/typhoeus_cache.rb +++ b/lib/common/typhoeus_cache.rb @@ -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