# Cache\_classes problem after update to 1.2.2

**URL:** <https://www.ruby-forum.com/t/cache-classes-problem-after-update-to-1-2-2/88053>\
**Category:** Rails\
**Created:** [March 7, 2007, 7:30pm UTC](https://www.ruby-forum.com/t/cache-classes-problem-after-update-to-1-2-2/88053 "2007-03-07T19:30:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nathan\_Woodhull](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/958977/32.png) [@Nathan\_Woodhull](https://www.ruby-forum.com/u/Nathan_Woodhull)\
**Post date:** [March 7, 2007, 7:30pm UTC](https://www.ruby-forum.com/t/cache-classes-problem-after-update-to-1-2-2/88053/1 "2007-03-07T19:30:31Z")

</div>

Hey Everyone,

We recently updated our rails application from 1.1.2 to 1.2.2. While  
running in development mode prior to the update, class reloading in  
development mode worked properly. However, after the update we now  
have to restart the web server for changes to take effect.

our development.rb:

config.cache\_classes = false

# Log error messages when you accidentally call methods on nil.

config.whiny\_nils = true

# Enable the breakpoint server that script/breakpointer connects to

config.breakpoint\_server = true

# Show full error reports and disable caching

config.action\_controller.consider\_all\_requests\_local = true  
config.action\_controller.perform\_caching = false  
config.action\_view.cache\_template\_extensions = false  
config.action\_view.debug\_rjs = true

# Let us know about problems in action\_mailer, since they could be

# errors filling templates, not just problems delivering mail.

config.action\_mailer.raise\_delivery\_errors = true

I tried loading up the configuration in the console. I _think_ that  
the syntax that I used should load up the rails configuration the same  
way that script/server does, but I am not an expert. What is  
interesting to me, is that it seems to be properly loading the  
cache\_classes parameter as false.

> > config = Rails::Configuration.new  
> > =\> #\<Rails::Configuration:0x312de5c @whiny\_nils=false,  
> > @cache\_classes=false, @action\_view=[], @log\_level=:debug,  
> > @database\_configuration\_file=“script/…/config/…/config/…/config/  
> > database.yml”, @breakpoint\_server=false, @view\_path=“script/…/  
> > config/…/config/…/app/views”, @action\_mailer=[],  
> > @load\_once\_paths=[], @plugin\_paths=[“script/…/config/…/config/…/  
> > vendor/plugins”], @controller\_paths=[“script/…/config/…/config/…/  
> > app/controllers”, “script/…/config/…/config/…/components”, “/Users/  
> > nathan/dev/indigo/trunk/vendor/rails/railties/builtin/rails\_info/”],  
> > @active\_record=[], @action\_controller=[], @load\_paths=[“script/…/  
> > config/…/config/…/test/mocks/development”, “script/…/config/…/  
> > config/…/app/controllers/”, “script/…/config/…/config/…/app”,  
> > “script/…/config/…/config/…/app/models”, “script/…/config/…/  
> > config/…/app/controllers”, “script/…/config/…/config/…/app/  
> > helpers”, “script/…/config/…/config/…/app/apis”, “script/…/  
> > config/…/config/…/components”, “script/…/config/…/config/…/  
> > config”, “script/…/config/…/config/…/lib”, “script/…/config/…/  
> > config/…/vendor”, “/Users/nathan/dev/indigo/trunk/vendor/rails/  
> > railties/builtin/rails\_info/”], @plugins=nil, @action\_web\_service=[],  
> > @log\_path=“script/…/config/…/config/…/log/development.log”,  
> > @frameworks=[:active\_record, :action\_controller, :action\_view,  
> > :action\_mailer, :action\_web\_service]\>
> 
> > Rails::Initializer.run(:process, config)  
> > =\> #\<Rails::Initializer:0x312acfc  
> > @loaded\_plugins=[“acts\_as\_attachment”, “exception\_notification”,  
> > “searchable”], @configuration=#\<Rails::Configuration:0x312de5c  
> > @whiny\_nils=true, @cache\_classes=false,  
> > @action\_view=[[:cache\_template\_extensions, false], [:debug\_rjs,  
> > true]], @log\_level=:debug, @database\_configuration\_file=“script/…/  
> > config/…/config/…/config/database.yml”, @breakpoint\_server=true,  
> > @view\_path=“script/…/config/…/config/…/app/views”,  
> > @action\_mailer=[[:raise\_delivery\_errors, true]], @load\_once\_paths=[],  
> > @plugin\_paths=[“script/…/config/…/config/…/vendor/plugins”],  
> > @controller\_paths=[“script/…/config/…/config/…/app/controllers”,  
> > “script/…/config/…/config/…/components”, “/Users/nathan/dev/indigo/  
> > trunk/vendor/rails/railties/builtin/rails\_info/”], @active\_record=[],  
> > @action\_controller=[[:consider\_all\_requests\_local, true],  
> > [:perform\_caching, false]], @load\_paths=[“script/…/config/…/  
> > config/…/test/mocks/development”, “script/…/config/…/config/…/app/  
> > controllers/”, “script/…/config/…/config/…/app”, “script/…/  
> > config/…/config/…/app/models”, “script/…/config/…/config/…/app/  
> > controllers”, “script/…/config/…/config/…/app/helpers”, “script/…/  
> > config/…/config/…/app/apis”, “script/…/config/…/config/…/  
> > components”, “script/…/config/…/config/…/config”, “script/…/  
> > config/…/config/…/lib”, “script/…/config/…/config/…/vendor”, “/  
> > Users/nathan/dev/indigo/trunk/vendor/rails/railties/builtin/  
> > rails\_info/”], @plugins=nil, @action\_web\_service=[],  
> > @log\_path=“script/…/config/…/config/…/log/development.log”,  
> > @frameworks=[:active\_record, :action\_controller, :action\_view,  
> > :action\_mailer, :action\_web\_service]\>\>
> 
> > config.cache\_classes  
> > =\> false
> 
> > RAILS\_ENV  
> > =\> “development”
> 
> > exit

If the config.cache\_classes property is getting set properly, why  
would class reloading in development mode stop working between the  
versions?

I do not know what other diagnostic information would be useful to  
resolve this problem, please let me know. I googled a bit and was  
unable to find anyone having similar problems.

-Nathan
