11917: Do not clear rails cache at boot time.
[arvados.git] / services / api / config / environment.rb
index 4ccec85307319023b1649acdd6a05a217d473afa..e24eee035cd2c8f0d01c5b708c43f9d870a1fc71 100644 (file)
@@ -1,12 +1,10 @@
+# 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