Merge branch '11945-disable-cache'
[arvados.git] / services / api / config / environment.rb
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4
5 # Load the rails application
6 require File.expand_path('../application', __FILE__)
7 require 'josh_id'
8
9 # Initialize the rails application
10 Server::Application.initialize!
11 begin
12   Rails.cache.clear
13 rescue Errno::ENOENT => e
14   # Cache directory does not exist? Then cache is clear, proceed.
15   Rails.logger.warn "In Rails.cache.clear, ignoring #{e.inspect}"
16 end