Friday, August 26, 2011

[Rails] fragment cache erorr - view 2 times

I have rails 3.0.9 + nginx + memcached + dalli.

#production.rb
config.cache_store = :dalli_store, Memcache_servers, { :namespace =>
'koolinar', :expires_in => 1.day, :compress => true }

#app/view/test/test.html.erb
<% cache do %>hello<% end %>

in browser i get
hello hello

Result is shown twice.

Hope you can help me

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate