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
|
@formats = nil
|
||||||
@env.delete_if { |k, v| k =~ /^(action_dispatch|rack)\.request/ }
|
@env.delete_if { |k, v| k =~ /^(action_dispatch|rack)\.request/ }
|
||||||
@env.delete_if { |k, v| k =~ /^action_dispatch\.rescue/ }
|
@env.delete_if { |k, v| k =~ /^action_dispatch\.rescue/ }
|
||||||
|
@method = @request_method = nil
|
||||||
|
@fullpath = @ip = @remote_ip = nil
|
||||||
@env['action_dispatch.request.query_parameters'] = {}
|
@env['action_dispatch.request.query_parameters'] = {}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -167,9 +169,7 @@ module ActionController
|
||||||
@block = nil
|
@block = nil
|
||||||
@length = 0
|
@length = 0
|
||||||
@body = []
|
@body = []
|
||||||
@charset = nil
|
@charset = @content_type = nil
|
||||||
@content_type = nil
|
|
||||||
|
|
||||||
@request = @template = nil
|
@request = @template = nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue