Fred wrote:> Hi,I want the page to be cached and be accessed by all users.And in my
> controller:
>
> class MyController < ApplicationController
> caches_page :show
> def show
> render :layout => false
> end
> end
>
> When I use link_to_remote to use My/show to update some div, i can not
> see the template has been cached. However,If I use
> <%= render_component :controller => ''My'', :action
=> ''show''%>
> in the default layout, I can see a cached file of
''index.html'' is
> generated under my RAILS_ROOT directory
POST requests are not cached by rails, and Prototype sends AJAX requests
via "POST" by default. If your are having performance problems you
might
invest into action or fragment caching.
Zsombor
--
Company - http://primalgrasp.com
Thoughts - http://deezsombor.blogspot.com
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---