Skip to the content
Documentation

[ContainerSettings]

No ratings yet

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

Summary

The group [ContainerSettings] of settings/kernelservices.ini.

File

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

Settings

Setting Default Description
Mode compiled These four are read before the extensions are active: set them here or in settings/override/kernelservices.ini.append.php, not in an extension. compiled the web kernel applies the compiled container in CacheDir: the extension activation of each siteaccess, recorded once, instead of looking up every extension directory on every request (the default). Without a compiled file, or when a request does not start from exactly the recorded state, it runs as without a container. dev nothing compiled is used; services are read from the settings as they stand (for development) disabled the container takes no part in the boot; services can still be asked for, read from the settings
CacheDir var/cache/kernelservices Where the compiled container lives, relative to the installation root: index.php and one <siteaccess>.php per siteaccess.
AutoRebuild enabled enabled a web request of a siteaccess without a current compiled file records its own extension activation and writes it, so the next request uses it (after an INI cache clear from the administration, or before the first compile) disabled only exp:services:compile, the deploy and ezcache.php on the command line write it
WorkerScope auto The worker scope of the settings files: each settings file of a siteaccess is built once per worker and handed out as a copy afterwards. On Exponential Velocity a worker serves thousands of requests, so this saves loading every settings file on every request; on PHP-FPM a worker is one request long. auto on only when the INI cache does not check file times either (EZP_INI_FILEMTIME_CHECK false in config.php), so a kept settings file is exactly what loading it again would give (the default) enabled always (an edited settings file then reaches a Velocity worker with the next compile, INI cache clear or restart) disabled never

See also

Generated example: kernelservices.ini [ContainerSettings]

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/kernelservices.ini.

Contributors

Comments

Add a comment

Comments are read by a moderator before they appear.