require 'gds_api/content_store'
require 'gds_api/rummager'

module Services
  def self.content_store
    @content_store ||= GdsApi::ContentStore.new(Plek.find("content-store"))
  end

  def self.rummager
    @rummager ||= GdsApi::Rummager.new(Plek.find("search"))
  end
end

require 'gds_api/content_store'
require 'gds_api/rummager'

module Services
  def self.content_store
    @content_store ||= GdsApi::ContentStore.new(
      Plek.find("content-store"),
      disable_cache: Rails.env.development?
    )
  end

  def self.rummager
    @rummager ||= GdsApi::Rummager.new(
      Plek.find("search"),
      disable_cache: Rails.env.development?
    )
  end
end

Disable cacheing in development env
Disable cacheing in development env

Rummager request responses were being cached and caused surprising behaviour
in that newly added specialist documents would not show up in search results
after cacheing on the dev vm. Also disable cacheing for content store to be
consistent.
