Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit b16c241

Browse files
Tatshwouterj
authored andcommitted
Add documentation about the 'namespace' option under 'metadata_cache_driver'
Conflicts: reference/configuration/phpcr_odm.rst
1 parent bb08a7d commit b16c241

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

reference/configuration/phpcr_odm.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,7 @@ not configure anything here, the ODM services will not be loaded.
461461
instance_class: ~
462462
class: ~
463463
id: ~
464+
namespace: ~
464465
465466
466467
.. code-block:: xml
@@ -496,6 +497,7 @@ not configure anything here, the ODM services will not be loaded.
496497
instance-class="null"
497498
class="null"
498499
id="null"
500+
namespace="null"
499501
/>
500502
</odm>
501503
</config>
@@ -528,6 +530,7 @@ not configure anything here, the ODM services will not be loaded.
528530
'instance_class' => null,
529531
'class' => null,
530532
'id' => null,
533+
'namespace' => null,
531534
),
532535
),
533536
));
@@ -584,6 +587,14 @@ metadata_cache_driver
584587
Configure a cache driver for the Doctrine metadata. This is the same as for
585588
`Doctrine ORM`_.
586589

590+
The ``namespace`` value is useful if you are using one primary caching server
591+
for multiple sites that have similar code in their respective ``vendor/``
592+
directories. By default, Symfony will try to generate a unique namespace
593+
value for each application but if code is very similar between two
594+
applications, it is very easy to have two applications share the same
595+
namespace. This option also prevents Symfony from needing to re-build
596+
applicationcache on each Composer update on a newly generated namespace.
597+
587598
General Settings
588599
~~~~~~~~~~~~~~~~
589600

0 commit comments

Comments
 (0)