How to cache the whole rhtml file?

In a template of my application,it has a fix content because the
database that the content is retrieved from has a fix content.
Therefore, i want the partial to be cached totally:
<% cache do %>

<% end %>

But i can not find it cached,anything more need to be done?
Thanks

btw, I want the whole rhtml to be cached and reused by any users,and not
cached according to each ip.

For this you are more likley talking about caches_page and
caches_action. Should be faster than partial caching. Plus remember
that caching is only active in production mode.

http://api.rubyonrails.org/classes/ActionController/Caching/Pages.html
http://api.rubyonrails.org/classes/ActionController/Caching/Actions.html

But I have to ask. If you have fixed content. Why are you storing it in
DB?

On 8/21/06, Fred [email protected] wrote:


Posted via http://www.ruby-forum.com/.

Jon Gretar B.
http://www.jongretar.net/