Merge branch '8624-fuse-tags' closes #8624
[arvados.git] / services / api / config / environment.rb
index 402d79f574c5e1dcef3523fd93b7dc528f73be26..d4b606dafcc7f6e7112b4591e16e82a6bbd08a2e 100644 (file)
@@ -1,6 +1,16 @@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
 # Load the rails application
 require File.expand_path('../application', __FILE__)
 require 'josh_id'
 
 # Initialize the rails application
 Server::Application.initialize!
+begin
+  Rails.cache.clear
+rescue Errno::ENOENT => e
+  # Cache directory does not exist? Then cache is clear, proceed.
+  Rails.logger.warn "In Rails.cache.clear, ignoring #{e.inspect}"
+end