File tree Expand file tree Collapse file tree 1 file changed +25
-2
lines changed Expand file tree Collapse file tree 1 file changed +25
-2
lines changed Original file line number Diff line number Diff line change @@ -88,20 +88,43 @@ method to return the right project directory::
8888 }
8989 }
9090
91+
9192Cache Directory
9293~~~~~~~~~~~~~~~
9394
9495**type **: ``string `` **default **: ``$this->getProjectDir()/var/cache/$this->environment ``
9596
9697This returns the absolute path of the cache directory of your Symfony project.
9798It's calculated automatically based on the current
98- :ref: `environment <configuration-environments >`.
99+ :ref: `environment <configuration-environments >`. Data might be written to this path
100+ at runtime.
99101
100102This value is exposed via the ``kernel.cache_dir `` configuration parameter and
101103the :method: `Symfony\\ Component\\ HttpKernel\\ Kernel::getCacheDir ` method. To
102- change this setting, override the ``getCacheDir() `` method to return the right
104+ change this setting, override the ``getCacheDir() `` method to return the correct
103105cache directory.
104106
107+ Build Directory
108+ ~~~~~~~~~~~~~~~
109+
110+ **type **: ``string `` **default **: ``$this->getCacheDir() ``
111+
112+ .. versionadded :: 5.2
113+
114+ The build directory feature was introduced in Symfony 5.2.
115+
116+ This returns the absolute path of a build directory of your Symfony project. This
117+ directory can be used to separate read-only cache (i.e. the compiled container)
118+ from read-write cache (i.e. cache pools). Specify a non-default value when the
119+ application is deployed in a read-only filesystem like a Docker container or AWS
120+ Lambda.
121+
122+ This value is exposed via the ``kernel.build_dir `` configuration parameter and
123+ the :method: `Symfony\\ Component\\ HttpKernel\\ Kernel::getBuildDir ` method. To
124+ change this setting, override the ``getBuildDir() `` method to return the correct
125+ build directory.
126+
127+
105128Log Directory
106129~~~~~~~~~~~~~
107130
You can’t perform that action at this time.
0 commit comments