json.cache! ['json_packages'], expires_in: 1.hour do
  json.packages @p do |p|
    json.extract! p, :maintainer, :name, :section, :maintainer_email, :homepage, :description
    json.url package_url(p.name, protocol: 'https')
  end
end
