# disable object caching?

**URL:** <https://discuss.rubyonrails.org/t/disable-object-caching/1851>\
**Category:** rubyonrails-talk\
**Created:** [September 19, 2006, 7:58am UTC](https://discuss.rubyonrails.org/t/disable-object-caching/1851 "2006-09-19T07:58:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![d\_c1](https://avatars.discourse-cdn.com/v4/letter/d/c89c15/32.png) [@d\_c1](https://discuss.rubyonrails.org/u/d_c1)\
**Post date:** [September 19, 2006, 7:58am UTC](https://discuss.rubyonrails.org/t/disable-object-caching/1851/1 "2006-09-19T07:58:21Z")

</div>

hi -

does rails cache code by default?

i have some lib/user classes, and when i add new methods i have to restart the webserver for them to show up. that hardly seems expected behavior? it makes each test/run cycle longer than compilling... is there a way to turn off caching?

i found this note: # Note: To turn off all caching and sweeping, set Base.perform\_caching = false.

but not sure where to put that code!

tx!

/dc
