Notes posted by megatux
RSS feed
megatux -
October 27, 2016 - (<= v3.2.13)
1 thank
An example, with expiration time set
e.g.:
Rails.cache.fetch("out_of_stock_products", :expires_in => 5.minutes) do Product.all.joins(:inventory).conditions.where("inventory.quantity = 0") end