Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit204bddd

Browse files
[HttpKernel] Add mention to the shared cache directory
1 parentc805014 commit204bddd

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:`Symfony\\Component\\HttpKernel\\Kernel::getShareDir` method to
123+
get a shared 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)

[8]ページ先頭

©2009-2025 Movatter.jp