# Automatic Caching?

**URL:** <https://www.ruby-forum.com/t/automatic-caching/96143>\
**Category:** Rails\
**Created:** [June 26, 2006, 7:55pm UTC](https://www.ruby-forum.com/t/automatic-caching/96143 "2006-06-26T19:55:31Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![roland](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/3ab097/32.png) [@roland](https://www.ruby-forum.com/u/roland)\
**Post date:** [June 26, 2006, 7:55pm UTC](https://www.ruby-forum.com/t/automatic-caching/96143/1 "2006-06-26T19:55:31Z")

</div>

Hello,

I have a big controller of about 1000 lines and whenever I make changes  
to views the browser does not show the updated code. I am running in  
development mode which makes it all more confusing.

This happens in both rails 1.0.0 and 1.1.2 and both in ruby 1.8.2 and  
1.8.4.  
It also happens for fcgi and scgi. Also for apache, webrick, and  
mongrel. At this point I have no idea what is going on.

If you have any suggestions please let me know,

Roland

---

<div class="post-metadata">

**Author:** ![roland](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/3ab097/32.png) [@roland](https://www.ruby-forum.com/u/roland)\
**Post date:** [June 26, 2006, 8:00pm UTC](https://www.ruby-forum.com/t/automatic-caching/96143/2 "2006-06-26T20:00:44Z")

</div>

First of all, why so big?  
I don’t know of any issues, but when you restart the webserver/process  
does it read the updated code fine?

* * *

Timothy J.  
[www.foundinteractive.com](http://www.foundinteractive.com)

---

<div class="post-metadata">

**Author:** ![roland](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/3ab097/32.png) [@roland](https://www.ruby-forum.com/u/roland)\
**Post date:** [June 26, 2006, 8:03pm UTC](https://www.ruby-forum.com/t/automatic-caching/96143/3 "2006-06-26T20:03:35Z")

</div>

Actually, the controller grew with time, and since it was started by  
someone else, I kept working in it.

Yes, I have to reload the webserver everytime to get the new updated  
view.

Roland

---

<div class="post-metadata">

**Author:** ![roland](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/3ab097/32.png) [@roland](https://www.ruby-forum.com/u/roland)\
**Post date:** [June 26, 2006, 8:10pm UTC](https://www.ruby-forum.com/t/automatic-caching/96143/4 "2006-06-26T20:10:53Z")

</div>

Only thing I can guess is that if “I” have more than 20 actions, it’s  
time to start a new controller. Is this happening in Production mode  
also.

–  
Timothy J.

---

<div class="post-metadata">

**Author:** ![roland](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/3ab097/32.png) [@roland](https://www.ruby-forum.com/u/roland)\
**Post date:** [June 26, 2006, 11:06pm UTC](https://www.ruby-forum.com/t/automatic-caching/96143/5 "2006-06-26T23:06:46Z")

</div>

Roland M. wrote:

> Hello,
> 
> I have a big controller of about 1000 lines and whenever I make changes  
> to views the browser does not show the updated code. I am running in  
> development mode which makes it all more confusing.
> 
> This happens in both rails 1.0.0 and 1.1.2 and both in ruby 1.8.2 and  
> 1.8.4.  
> It also happens for fcgi and scgi. Also for apache, webrick, and  
> mongrel. At this point I have no idea what is going on.
> 
> If you have any suggestions please let me know,
> 
> Roland

Maybe check the environments/development.rb to see if class caching is  
turned on.

---

<div class="post-metadata">

**Author:** ![roland](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/3ab097/32.png) [@roland](https://www.ruby-forum.com/u/roland)\
**Post date:** [June 26, 2006, 8:17pm UTC](https://www.ruby-forum.com/t/automatic-caching/96143/6 "2006-06-26T20:17:28Z")

</div>

Same thing happens in production mode too…

I guess I will have to split the controller and organize things better.

Thanks Timothy for your help.
