This project is archived and is in readonly mode.

Clearing dependencies in reload_application performance issue
Reported by Andrew White | February 6th, 2009 @ 05:40 PM
As of this commit clearing dependencies has been moved to reload_application. If a plugin loads any constants in prepare_dispatch these are then cleared and reloaded unnecessarily. This is especially the case with the Thinking Sphinx plugin which loads all models in its prepare_dispatch callback
The attached patch moves the cleanup code before prepare_dispatch so that any constants from previous requests are cleared before application/plugin code might access them.
Comments and changes to this ticket
- 
         DHH February 7th, 2009 @ 01:26 PM- Assigned user set to josh
- Milestone cleared.
 
- 
         josh February 7th, 2009 @ 05:09 PM- State changed from new to open
 
- 
         Repository February 7th, 2009 @ 06:08 PM- State changed from open to resolved
 (from [5f5d2d30a0c02d15b37f8f07db1b0abe9c7309f4]) Move cleanup before prepare_dispatch so that constants are not loaded twice [#1898 state:resolved] Signed-off-by: Joshua Peek josh@joshpeek.com http://github.com/rails/rails/co... 
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>
People watching this ticket
Attachments
Referenced by
- 
         1898 
          Clearing dependencies in reload_application performance issue
        (from [5f5d2d30a0c02d15b37f8f07db1b0abe9c7309f4]) Move cl... 1898 
          Clearing dependencies in reload_application performance issue
        (from [5f5d2d30a0c02d15b37f8f07db1b0abe9c7309f4]) Move cl...
 Andrew White
      Andrew White
 josh
      josh