Skip to content

Commit b9f2935

Browse files
committed
feature #19399 [FrameworkBundle] Update cache_dir config (Okhoshi)
This PR was merged into the 7.1 branch. Discussion ---------- [FrameworkBundle] Update `cache_dir` config Update the documentation on configuration of the FrameworkBundle to reflect the deprecation of `cache_dir` (done in symfony/symfony#52962) and the introduction of `ignore_cache` (from symfony/symfony#53059). Fixes #19281 Ping `@alexandre`-daubois Commits ------- 47e0be0 [FrameworkBundle] Update cache_dir config
2 parents 9926b76 + 47e0be0 commit b9f2935

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

reference/configuration/framework.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1511,6 +1511,19 @@ cache_dir
15111511
The directory where routing information will be cached. Can be set to
15121512
``~`` (``null``) to disable route caching.
15131513

1514+
.. deprecated:: 7.1
1515+
1516+
Setting the ``cache_dir`` option is deprecated since Symfony 7.1. The routes
1517+
are now always cached in the ``%kernel.build_dir%`` directory. If you want
1518+
to disable route caching, set the ``ignore_cache`` option to ``true``.
1519+
1520+
ignore_cache
1521+
............
1522+
1523+
**type**: ``boolean`` **default**: ``false``
1524+
1525+
When this option is set to ``true``, routing information will not be cached.
1526+
15141527
secrets
15151528
~~~~~~~
15161529

0 commit comments

Comments
 (0)