1
0
Fork 0
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:
wycats 2010-06-04 10:27:21 -07:00
parent cb1b2a719a
commit ff4c218095

View file

@ -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