Skip to content

Commit 71b94b7

Browse files
[HttpKernel] Add mention to the shared cache directory
1 parent c805014 commit 71b94b7

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

configuration/override_dir_structure.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,19 @@ named ``APP_CACHE_DIR`` whose value is the full path of the cache folder.
118118
its own cached configuration files, and so each needs its own directory to
119119
store those cache files.
120120

121+
In case you have multiple frontend servers using the same shared filesystem, you
122+
can make use of the :method:``Kernel::getShareDir()`` method to get a shared
123+
directory for cache and shared data. The shared directory can be set
124+
by overriding an environment variable named ``APP_SHARE_DIR`` whose value is the full
125+
path of the shared folder. This directory is also accessible as a container parameter
126+
named ``%kernel.share_dir%``.
127+
128+
.. versionadded:: 7.4
129+
130+
The ``Kernel::getShareDir()`` method, the ``%kernel.share_dir`` parameter and
131+
the support for the ``APP_SHARE_DIR`` environment variable were introduced
132+
in Symfony 7.4.
133+
121134
.. _override-logs-dir:
122135

123136
Override the Log Directory

0 commit comments

Comments
 (0)