search for: methodtocache_cache

Displaying 1 result from an estimated 1 matches for "methodtocache_cache".

2007 Sep 02
5
hash_cache a bogus function that never worked?
...cause 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...