json.cache! ['json_packages'], expires_in: 1.hour do json.packages @p do |p| json.extract! p, :name end end