Forum: Ruby on Rails Action Caching in Rails?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
dare r. (Guest)
on 2009-02-23 05:44
Dear all,

I have created a rails application which has menus, like companies,
users, departments, banners etc. When i click on my menu(I have used
link_to_remote) i have rendered the corresponding pages without changing
the layouts. I have fully used ajax concepts for all navigations.

For listing companies and users, i need to use action caching but when
ajax request in passed action caching was not performed. It works fine
when the requesxt is just post(like while using link_to).

So could any one please suggest on above issue how to handle action
caching when the request is a ajax request.?

Thanks in advance

Regards,
Jose Martin
Ar C. (Guest)
on 2009-02-23 16:35
You might want to check out fragment caching where you can take more
control over what fragments are expired when...

Action caching mixed with Ajax might be your issue, although I haven't
experimented with that mix. I used fragment_caching long before I
started Ajax-ifying (is that even a word?) my app.
This topic is locked and can not be replied to.