1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

reuse details cache key identity object

This commit is contained in:
Aaron Patterson 2019-02-08 15:16:00 -08:00
parent f369b63ad6
commit 6ccddadd84
No known key found for this signature in database
GPG key ID: 953170BCB4FFAFC6

View file

@ -62,11 +62,7 @@ module ActionView
@digest_cache = Concurrent::Map.new
def self.digest_cache(details)
if details[:formats]
details = details.dup
details[:formats] &= Template::Types.symbols
end
@digest_cache[details] ||= Concurrent::Map.new
@digest_cache[details_cache_key(details)] ||= Concurrent::Map.new
end
def self.details_cache_key(details)