Caching pages


I want to cache pages...
I have this function show, and on top of my page I have the cache stuff.
But it doesnt seem to work. Cuz I saw still queries in the development
log file. Can anyone help me?

Caching isn't enabled in development mode...

Set config.action_controller.perform_caching to true in
config/environments/development.rb if you want to see how it works.

Or switch your environment to production...