You should not be updating code in production while the site is live. And there's no "place" for the cache_classes, that's an "abstract" configuration, the classes are cached by Ruby itself and you'd have to unload them to do what you're looking for but this isn't a good idea as there are many side effects.
- Maurício Linhares http://codeshooter.wordpress.com/ | http://twitter.com/mauriciojr On Thu, Jul 23, 2009 at 11:37 AM, sultan<[email protected]> wrote: > > Fred, thanks for responding. > What I meant was, where is the cache directory/file physically so I > can delete it. > Or, is there a rake command to clear the cache_classes? > I need to do this so my code changes can be migrated to production. > > This post was further to my previous post "Problem with deploying > changes in production." > > In my /config/environment/production.rb, if I have: > config.cache_classes = false > and I run “ruby script/server -e production” > I can see my new changes. > > When I change the /config/environment/production.rb back to: > config.cache_classes = true > and kill and restart the server with “ruby script/server -e > production” > the changes are not there. Some how, the old code is still there. > > On Jul 23, 8:00 am, Frederick Cheung <[email protected]> > wrote: >> On Jul 23, 2:37 pm, sultan <[email protected]> wrote: >> >> > In config/environments/production.rb the comment says >> > # Code is not reloaded between requests >> > config.cache_classes = true >> > Where does RoR store cache_classes code? >> >> That stuff is in ActiveSupport::Dependencies >> >> Fred > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

