# Code caching in development period

**URL:** <https://www.ruby-forum.com/t/code-caching-in-development-period/147199>\
**Category:** Rails\
**Created:** [August 29, 2008, 9:43am UTC](https://www.ruby-forum.com/t/code-caching-in-development-period/147199 "2008-08-29T09:43:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![avanetix](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/838e76/32.png) [@avanetix](https://www.ruby-forum.com/u/avanetix)\
**Post date:** [August 29, 2008, 9:43am UTC](https://www.ruby-forum.com/t/code-caching-in-development-period/147199/1 "2008-08-29T09:43:10Z")

</div>

Hello!

I make such test:  
I have created new RoR-project and have made one controller and on  
ruby library:  
app/controllers/test\_controller.rb  
lib/test.rb

I have tested my simple project on 3 web-servers:: thin, mongrel,  
apache + passenger in  
development-environment.

On all 3 web-servers I see changes in my controller without web-server  
restarting.  
But changes in test.rb I can see only after web-server restarting.  
I understand, why i don’t see changes. But I have such questions:

1. Is it possible to configure my web-server or rails so, that require  
caching (code caching) for my rb-files was  
turned off?
2. Can I by ruby-code reload cached rb-libraries?
3. Can I configure, that web-server doesn’t cache all rb-scripts,  
except some of them?
