Permalink
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...
1 parent 1aaeb21 commit c77729fd23ccf169cafd1d72eb469fe1e4e42ea0 @seckar seckar committed Feb 4, 2006
Showing with 4 additions and 0 deletions.
  1. +2 −0 actionpack/CHANGELOG
  2. +2 −0 actionpack/lib/action_controller/caching.rb
@@ -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]
@@ -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

0 comments on commit c77729f

Please sign in to comment.