Skip to navigation
How to cache an ajax called partial in rails?
07.12.13
Using Framgent Caching example: to cache a certain section for a certain user, paste this on the top <% cache (:controller => "store", :action => "list", :user_id => session[:user_id]) do %> end this to close: <% end %> than in the controller add unless : unless read_fragment({:id=>params[:id],:user_id => session[:user_id] }) to avoid that the databases get called if the cache already exist. for more info check out this: http://www.railsenvy.com/2007/3/20/ruby-on-rails-caching-tutorial-part-2
Reply
Anonymous
How to cache a ajax called partial in rails?
Using Framgent Caching example: to cache a certain section for a certain user, paste this on the top <% cache (:controller => "store", :action => "list", :user_id => session[:user_id]) do %> end this to close: <% end %> than in the controller add unless : unless read_fragment({:id=>params[:id],:user_id => session[:user_id] }) to avoid that the databases get called if the cache already exist. for more info check out this: http://www.railsenvy.com/2007/3/20/ruby-on-rails-caching-tutorial-part-2
07.12.13
Reply
Anonymous
Information Epoch 1734863175
There is no perfect productivity system.
Home
Notebook
Contact us