projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
delete cached discovery document during boot, so doc matches running code
[arvados.git]
/
services
/
api
/
config
/
initializers
/
schema_discovery_cache.rb
diff --git a/services/api/config/initializers/schema_discovery_cache.rb
b/services/api/config/initializers/schema_discovery_cache.rb
new file mode 100644
(file)
index 0000000..
1f8a7b1
--- /dev/null
+++ b/
services/api/config/initializers/schema_discovery_cache.rb
@@ -0,0
+1,5
@@
+# 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'