Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Set sweeper's @controller to nil after a request so that the controll…

…er may be collected between requests.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3529 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit c77729fd23ccf169cafd1d72eb469fe1e4e42ea0 1 parent 1aaeb21
@seckar seckar authored
View
2  actionpack/CHANGELOG
@@ -1,5 +1,7 @@
*SVN*
+* Set sweeper's @controller to nil after a request so that the controller may be collected between requests.
+
* Subclasses of ActionController::Caching::Sweeper should be Reloadable. [Rick Olson]
* Document the :xhr option for verifications. #3666 [leeo]
View
2  actionpack/lib/action_controller/caching.rb
@@ -532,6 +532,8 @@ def before(controller)
def after(controller)
callback(:after)
+ # Clean up, so that the controller can be collected after this request
+ self.controller = nil
end
private
Please sign in to comment.
Something went wrong with that request. Please try again.