Skip to content

Commit 556329c

Browse files
committed
minor #10039 update the serializer cache description (xabbuh)
This PR was merged into the 3.4 branch. Discussion ---------- update the serializer cache description This fixes #7282. Commits ------- b65d15a update the serializer cache description
2 parents bc2d51b + b65d15a commit 556329c

File tree

2 files changed

+5
-42
lines changed

2 files changed

+5
-42
lines changed

reference/configuration/framework.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1860,6 +1860,8 @@ ships with multiple adapters: ``cache.adapter.apcu``, ``cache.adapter.doctrine``
18601860
given the adapter they are based on. Internally, a pool wraps the definition
18611861
of an adapter.
18621862

1863+
.. _reference-cache-systen:
1864+
18631865
system
18641866
......
18651867

serializer.rst

Lines changed: 3 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -229,48 +229,9 @@ Enabling the Metadata Cache
229229
---------------------------
230230

231231
Metadata used by the Serializer component such as groups can be cached to
232-
enhance application performance. Any service implementing the ``Doctrine\Common\Cache\Cache``
233-
interface can be used.
234-
235-
A service leveraging `APCu`_ (and APC for PHP < 5.5) is built-in.
236-
237-
.. configuration-block::
238-
239-
.. code-block:: yaml
240-
241-
# app/config/config_prod.yml
242-
framework:
243-
# ...
244-
serializer:
245-
cache: serializer.mapping.cache.apc
246-
247-
.. code-block:: xml
248-
249-
<!-- app/config/config_prod.xml -->
250-
<?xml version="1.0" encoding="UTF-8"?>
251-
<container xmlns="http://symfony.com/schema/dic/services"
252-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
253-
xmlns:framework="http://symfony.com/schema/dic/symfony"
254-
xsi:schemaLocation="http://symfony.com/schema/dic/services
255-
http://symfony.com/schema/dic/services/services-1.0.xsd
256-
http://symfony.com/schema/dic/symfony
257-
http://symfony.com/schema/dic/symfony/symfony-1.0.xsd">
258-
259-
<framework:config>
260-
<!-- ... -->
261-
<framework:serializer cache="serializer.mapping.cache.apc" />
262-
</framework:config>
263-
</container>
264-
265-
.. code-block:: php
266-
267-
// app/config/config_prod.php
268-
$container->loadFromExtension('framework', array(
269-
// ...
270-
'serializer' => array(
271-
'cache' => 'serializer.mapping.cache.apc',
272-
),
273-
));
232+
enhance application performance. By default, the serializer uses the ``cache.system``
233+
cache pool which is configured using the :ref:`cache.system <reference-cache-systen>`
234+
option.
274235

275236
Enabling a Name Converter
276237
-------------------------

0 commit comments

Comments
 (0)