Template:Box Code

From Expertiza_Wiki
Revision as of 04:21, 18 September 2014 by Nmathew (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
 Benchmark.measure do
   Rails.cache.fetch(“cache_key”) do 
     User.some_expensive_query
   end
 end.real
 => 20.5s