Caching question

My inderstand is that when a partial is re-rendered, it is also re-
executed. So, if I have a select in a partial, say,

select(“channelnotes”, “channelnotes”, Channelnote.find(:all, :order
=> ‘tstamp DESC’, :limit =>3, :conditions => [“deleted=0”]).collect {|
p| [ p.note, p.note]}, { :include_blank =>
true , :selected=>0, :value=>""}

That when this partial is re-rendered, the data that populates it will
be pulled from the database anew.

But that is not happening, and I suspect it is a caching issue (either
on the clilent, or maybe even on the server). Can anyone here confirm
this? Does anyone know anything about caching in Rails, and, if
possible, ways to turn it off so that things really DO get re-
rendered? Thanks, Rvince

On Sat, Sep 5, 2009 at 10:19 AM, RVince[email protected] wrote:

My inderstand is that when a partial is re-rendered, it is also re-
executed.

Mine too :slight_smile:

But that is not happening, and I suspect it is a caching issue

Are you running development or production mode?


Hassan S. ------------------------ [email protected]
twitter: @hassan