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

Commit 208872a

Browse files
committed
Merge pull request #553 from Tatsh/add-cache-namespace-documentation
Add documentation about the 'namespace' option
2 parents 7408d78 + 5a261b0 commit 208872a

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

reference/configuration/phpcr_odm.rst

Lines changed: 13 additions & 1 deletion
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
));
@@ -581,7 +584,16 @@ names without any actual configuration.
581584
metadata_cache_driver
582585
"""""""""""""""""""""
583586

584-
Configure a cache driver for the Doctrine metadata. This is the same as for `Doctrine ORM`_.
587+
Configure a cache driver for the Doctrine metadata. This is the same as for
588+
`Doctrine ORM`_.
589+
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+
application cache on each Composer update on a newly generated namespace.
585597

586598
General Settings
587599
~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)