# Why are my views being cached?

**URL:** <https://www.ruby-forum.com/t/why-are-my-views-being-cached/135569>\
**Category:** Rails\
**Created:** [April 23, 2008, 8:10am UTC](https://www.ruby-forum.com/t/why-are-my-views-being-cached/135569 "2008-04-23T08:10:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rob\_A](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/7993a0/32.png) [@Rob\_A](https://www.ruby-forum.com/u/Rob_A)\
**Post date:** [April 23, 2008, 8:10am UTC](https://www.ruby-forum.com/t/why-are-my-views-being-cached/135569/1 "2008-04-23T08:10:31Z")

</div>

Hi,  
I’m experiencing something very strange, rails 2.0.1.  
I’m running my app in development mode, yet it is caching views…

If I put some random text in a view and refresh the page it isn’t  
there… yet if I restart the app server it magically appears!

to add to the weirdness, models and controllers are not being cached  
and if I deliberately break a method i get an exception as you would  
expect.

I am running my app with the following command:  
/usr/local/bin/ruby18 /usr/local/bin/mongrel\_rails start -p 12026 -d -  
e development

Anyone have any ideas?  
Appreciated  
Rob

---

<div class="post-metadata">

**Author:** ![Rob\_A](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/7993a0/32.png) [@Rob\_A](https://www.ruby-forum.com/u/Rob_A)\
**Post date:** [April 23, 2008, 11:53pm UTC](https://www.ruby-forum.com/t/why-are-my-views-being-cached/135569/2 "2008-04-23T23:53:47Z")

</div>

I guess that it’s worth checking config/environments/development.rb  
and config/environment.rb. Make sure that you have anything with  
“cache” set to false, such as:

config.action\_controller.perform\_caching = false  
config.action\_view.cache\_template\_extensions = false

Other than that, I have no great ideas (and it’s not all that great,  
either).

-Kyle
