Skip to the content
Documentation

[ApplicationSettings]

No ratings yet

Available since Exponential 6.0.15 (in development, not in a release yet).

Summary

The group [ApplicationSettings] of settings/velocity.ini.

File

settings/velocity.ini; override it in settings/override/velocity.ini.append.php, in a siteaccess or in an extension.

Settings

Setting Default Description
KeepGlobals[] (empty array) Globals the application keeps between requests. A registry filled by a file the kernel reaches with include_once cannot be refilled once cleared, because include_once will not run that file again. Four registries in this kernel are built that way -- datatypes, workflow events, notification events and payment gateways -- and clearing one leaves a worker unable to resolve it for the rest of its life. Those are facts about the kernel, so they are exp:velocity's built-in defaults (expVelocity::DEFAULT_KEEP_GLOBALS) and need no setting. This list ADDS to them, as does --keep-global=Name[,Name] on start, restart and command; each name is kept once. `exp:velocity command` shows the result. Nothing else belongs here. Request-scoped globals must be cleared, and keeping one leaks a request into the next.
KeepGlobalsDefaults enabled enabled (default) keeps the built-in list; disabled starts from nothing, for a kernel that does not build those registries.

See also

Generated example: velocity.ini [ApplicationSettings]

Added to the reference for Exponential 6.0.15: the 4.x reference had no page for this group. The descriptions are the comment lines of settings/velocity.ini.

Contributors

Comments

Add a comment

Comments are read by a moderator before they appear.