# Rails Caching with no caching at all

**URL:** <https://www.ruby-forum.com/t/rails-caching-with-no-caching-at-all/118752>\
**Category:** Rails\
**Created:** [October 30, 2007, 5:28pm UTC](https://www.ruby-forum.com/t/rails-caching-with-no-caching-at-all/118752 "2007-10-30T17:28:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pcollins](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/f1d935/32.png) [@pcollins](https://www.ruby-forum.com/u/pcollins)\
**Post date:** [October 30, 2007, 5:28pm UTC](https://www.ruby-forum.com/t/rails-caching-with-no-caching-at-all/118752/1 "2007-10-30T17:28:00Z")

</div>

Im developing a data oriented application, i mean, i have a lot of  
tables with catalogs and views, but the code is allmost the same for  
every page. Every module use the same view, so i put it in a partial  
and use it with some reflection magic to get it work with any model.

e.g.: Clientes have many destinations, products and contacts.  
My views for the show action looks like:

– app/views/destinations/show.rhtml  
\<%= details\_for @destination, :parent =\> @client, :fields =\> … %\>

– app/views/products/show.rhtml  
\<%= details\_for @product, :parent =\> @client, :fields =\> … %\>

– app/views/contacts/show.rhtml  
\<%= details\_for @contact, :parent =\> @client, :fields =\> … %\>

details\_for is a helper method used to render app/views/shared/  
\_show.rhtml

In production mode without any explicit caching, rails still caches a  
few things, in this case, if i update a record, the view remains with  
the old data. As a temporary solution i disabled caching in my  
production.rb. But is there a better solution for this issue?
