# Rails caching code in controller?

**URL:** <https://www.ruby-forum.com/t/rails-caching-code-in-controller/106525>\
**Category:** Rails\
**Created:** [June 11, 2007, 5:17pm UTC](https://www.ruby-forum.com/t/rails-caching-code-in-controller/106525 "2007-06-11T17:17:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [June 11, 2007, 5:17pm UTC](https://www.ruby-forum.com/t/rails-caching-code-in-controller/106525/1 "2007-06-11T17:17:36Z")

</div>

I’m pretty new to both Ruby and Rails, but I’ve got the basics. I just  
inherited a project with a Postgres DB, Lighttpd running as web server  
with 3 Mongrel processes. For some reason, when I update the code in  
the controller files, it never gets executed (for example, adding a  
new method throws a NoMethodFound error). Updating .rhtml files in the  
view works just fine, unless I’m trying to use vars set in the updated  
controllers.

I’ve tried everything I can think of, including using dev mode and  
restarting both Lighttpd and Mongrel. I’ve also made sure that the  
source in both the web root and the Subversion repository are synched.

Am I missing something in the configuration? I’ve never run into this  
before in any of the few other Rails projects I’ve worked on.
