Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

race_condition_ttl should be an integer

  • Loading branch information...
commit 06ea1bad551badbdfb02ca7e23cb727f490a0e72 1 parent 4280b20
@makeable makeable authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  activesupport/lib/active_support/cache.rb
View
2  activesupport/lib/active_support/cache.rb
@@ -280,7 +280,7 @@ def fetch(name, options = nil)
end
end
if entry && entry.expired?
- race_ttl = options[:race_condition_ttl].to_f
+ race_ttl = options[:race_condition_ttl].to_i
if race_ttl and Time.now.to_f - entry.expires_at <= race_ttl
entry.expires_at = Time.now + race_ttl
write_entry(key, entry, :expires_in => race_ttl * 2)
Please sign in to comment.
Something went wrong with that request. Please try again.