Whenever a RESTXQ URL is requested, the [[Options#RESTXQPATH|RESTXQPATH]] module directory and its sub-directories will be parsed for functions with RESTXQ annotations in library modules (detected by the extension {{Code|.xqm}}) and main modules (detected by {{Code|.xq}}). In main expressions, the main module will never be evaluated. All modules will be cached and parsed again when their timestamp changes.
The following features are will be available with {{Version|8.3}}:
* Module caching can be turned on by setting [[Options#CACHERESTXQ|CACHERESTXQ]] to true. This option is particularly helpful in productive environments with a high load.