Does Elasticsearch recognise that a previously cached script has been updated, and replace the cache entry with the new script compilation?
I've seen code that manages script caching client-side, explicitly uploading new copies of a script when it changes. I've been looking at https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-scripting-using.html#modules-scripting-using-caching and I'm not sure whether this explicit behaviour is necessary - and if it is, why it isn't just handled by Elasticsearch itself.
Should I manage script updates with explicit code? Or is it handled better by Elasticsearch?