Permalink
Browse files

Fix timing cache key naming

  • Loading branch information...
1 parent e797dc2 commit 561867e4298279b40016ada9fb2c6056e6383626 @j15e j15e committed Oct 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/models/spree/calculator/active_shipping/base.rb
@@ -132,7 +132,7 @@ def retrieve_timings(origin, destination, packages)
else
message = re.message
end
- Rails.cache.write @cache_key+'-', {} #write empty hash to cache to prevent constant re-lookups
+ Rails.cache.write @cache_key+"-timings", {} #write error to cache to prevent constant re-lookups
raise Spree::ShippingError.new("#{I18n.t(:shipping_error)}: #{message}")
end
end

0 comments on commit 561867e

Please sign in to comment.