Template:Box Code

From Expertiza_Wiki
Jump to navigation Jump to search
 Benchmark.measure do
   Rails.cache.fetch(“cache_key”) do 
     User.some_expensive_query
   end
 end.real
 => 20.5s