For the complete documentation index, see llms.txt. This page is also available as Markdown.

Scripts (ScriptService)

Introduction

Lightweight script services consist in moving logic that does not require connection to services from backend code to the request. Scripts can be written in the repository and then used in the request. The script code should be written in pure JavaScript (ES6 or newer). The code must be compatible with the JavaScript engine version provided by Rhino (http://mozilla.github.io/rhino/compat/engines.html).

Additionally have been disabled such elements as "eval".

Script services are cached after retrieval. The lifetime is controlled by the configuration key repository_script_service_cache_ttl and settings["REPOSITORY_SCRIPT_SERVICE_CACHE_TTL"]

Last updated

Was this helpful?