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:
parent
f369b63ad6
commit
6ccddadd84
1 changed files with 1 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue