Skip to content

Fix doc of cache prefix and namespace #15502

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cache.rst
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,8 @@ You can also create more customized pools:
Each pool manages a set of independent cache keys: keys from different pools
*never* collide, even if they share the same backend. This is achieved by prefixing
keys with a namespace that's generated by hashing the name of the pool, the name
of the compiled container class and a :ref:`configurable seed <reference-cache-prefix-seed>`
that defaults to the project directory.
of the cache adapter class and a :ref:`configurable seed <reference-cache-prefix-seed>`
that defaults to the project directory and compiled container class.

Each custom pool becomes a service whose service ID is the name of the pool
(e.g. ``custom_thing.cache``). An autowiring alias is also created for each pool
Expand Down
6 changes: 3 additions & 3 deletions reference/configuration/framework.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2485,7 +2485,7 @@ email_validation_mode

**type**: ``string`` **default**: ``loose``

Sets the default value for
Sets the default value for
:doc:`/reference/constraints/Email` validator. The possible values are:

* ``loose``, it uses a simple regular expression to validate the address (it
Expand Down Expand Up @@ -2938,9 +2938,9 @@ The cache clearer used to clear your PSR-6 cache.
prefix_seed
...........

**type**: ``string`` **default**: ``null``
**type**: ``string`` **default**: ``_%kernel.project_dir%.%kernel.container_class%``

If defined, this value is used as part of the "namespace" generated for the
This value is used as part of the "namespace" generated for the
cache item keys. A common practice is to use the unique name of the application
(e.g. ``symfony.com``) because that prevents naming collisions when deploying
multiple applications into the same path (on different servers) that share the
Expand Down