I never used this, but I am wondering that maybe it only works in production environment instead of development and test envs?
hash_cache is not intended as a response caching mechanism. Rails has a number of solutions for this such as page, action, and fragment caching. There is a nice peepcode video on caching in rails, btw, and a number of other resources available.
In answer to the rails environment question, hash_cache doesn't work in development for the reason stated: the classes are reloaded, wiping out the class variable holding the cache. Similarly, normal caching in rails is turned off in the development environment as well.
Rein
~/myrailsapp $ cd config/environments ~/myrailsapp/config/environments $ diff development.rb production.rb