Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>
+++ /dev/null
-# Copyright (C) The Arvados Authors. All rights reserved.
-#
-# SPDX-License-Identifier: AGPL-3.0
-
-# Delete the cached discovery document during startup. Otherwise we
-# might still serve an old discovery document after updating the
-# schema and restarting the server.
-
-Rails.cache.delete 'arvados_v1_rest_discovery'
setup do forget end
teardown do forget end
def forget
- Rails.cache.delete 'arvados_v1_rest_discovery'
AppVersion.forget
end
SSLCertName: [["CN", WEBrick::Utils::getservername]],
StartCallback: lambda { ready.push(true) })
srv.mount_proc '/discovery/v1/apis/arvados/v1/rest' do |req, res|
- Rails.cache.delete 'arvados_v1_rest_discovery'
res.body = Arvados::V1::SchemaController.new.send(:discovery_doc).to_json
end
srv.mount_proc '/arvados/v1/users/current' do |req, res|