Code caching

18 views
Skip to first unread message

veejar

unread,
Aug 28, 2008, 11:04:42 AM8/28/08
to Phusion Passenger Discussions
Hello.

I use Apache2 + passenger.
In my rails-project lib-folder I have rb-file, test.rb.
When I change this rb-file, I must restart Apache to see changes,
because passenger cache code in my rb-scripts in lib-folder.

1. Is it possible to configure passenger so, that code caching was
turned off?
2. Can I by ruby-code reload cached rb-libraries?
3. Can I configure, that passenger doesn't cache all rb-scripts,
except some of them?

Dan Manges

unread,
Sep 18, 2008, 10:29:43 PM9/18/08
to Phusion Passenger Discussions
Rails does the code caching - it doesn't have anything to do with
Passenger. Why do you want code changes to be picked up? Are you doing
development? If so, you should switch to using the Rails development
environment. If you really want to do this in the production
environment (which is what Passenger runs by default), edit this line
in production.rb:

config.cache_classes = true

Set it to false. Doing this will make your website significantly
slower though.

-Dan
http://www.dcmanges.com/blog
Reply all
Reply to author
Forward
0 new messages