class TravelAdviceController < MultipageController
private

  def base_path
    "/foreign-travel-advice/#{params[:country_slug]}"
  end
end

class TravelAdviceController < MultipageController
  def show
    expires_in(10.seconds, public: true)
    super
  end

private

  def base_path
    "/foreign-travel-advice/#{params[:country_slug]}"
  end
end

Reduce cache time from 15.minutes to 10.seconds
Reduce cache time from 15.minutes to 10.seconds

If no cache control headers are set, the in-memory
cache in gds-api adapters defaults to 15 minutes.
This is too long for travel advice. We could have
urgent updates that we need to send out, e.g. if
an act of terrorism has taken place.

github.com/alphagov/gds-api-adapters/blob/master/lib/gds_api/json_client.rb

