text: Hi,
  I’ve been investigating various caching methods provided by Rail. I
  first looked at the hash_cache module and function. In testing it, I
  noticed it wasn’t actually caching anything. Then looking at the source
  code, I noticed that it attempted to hold its cache in a class variable
  - which won’t actually be saved from page request to page because of the
  way that rails works.
  Hash_cache seems to be a complete bogus, non-functional function which
  has been carried and documented for a while. Am I missing something?
  Anyway, my test functions (within a descendant of
  application_controller):
  def cacheTest
  i = params[:id]
  res = methodToCache_cache[i]
  print “value returned #{i}\n\n”
  render_text res
  end
  def methodToCache i
  print “\n\nmethod actually called #{i}\n\n”
  return “test text <%print #{i}%>”
  end
  hash_cache :methodToCache
  The log results:
  …
  method actually called 67
  value returned 67
  127.0.0.1 - - [01/Sep/2007:16:15:19 Pacific Daylight Time] “GET
  /posts/cacheTest
  /67 HTTP/1.1” 200 22
  - -> /posts/cacheTest/67
  method actually called 67
  value returned 67
  127.0.0.1 - - [01/Sep/2007:16:15:20 Pacific Daylight Time] “GET
  /posts/cacheTest
  /67 HTTP/1.1” 200 22
  ===> Calling the function with the same values twice resulted in the
  being called twice, IE, not cached.
  Has anyone tested this or other caching functionality of rails?
  Joe