mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Memoizing methods on request means we need to clear them out on recycle!
This commit is contained in:
parent
cb1b2a719a
commit
ff4c218095
1 changed files with 3 additions and 3 deletions
|
@ -155,6 +155,8 @@ module ActionController
|
|||
@formats = nil
|
||||
@env.delete_if { |k, v| k =~ /^(action_dispatch|rack)\.request/ }
|
||||
@env.delete_if { |k, v| k =~ /^action_dispatch\.rescue/ }
|
||||
@method = @request_method = nil
|
||||
@fullpath = @ip = @remote_ip = nil
|
||||
@env['action_dispatch.request.query_parameters'] = {}
|
||||
end
|
||||
end
|
||||
|
@ -167,9 +169,7 @@ module ActionController
|
|||
@block = nil
|
||||
@length = 0
|
||||
@body = []
|
||||
@charset = nil
|
||||
@content_type = nil
|
||||
|
||||
@charset = @content_type = nil
|
||||
@request = @template = nil
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue