Skip to content

Commit d573187

Browse files
committed
Merge branch '5.4' into 6.3
* 5.4: [Cache] Mention some details about cache.adapter.system
2 parents 8e2719a + 8118c09 commit d573187

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

cache.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ of:
4545
Redis and Memcached are examples of such adapters. If a DSN is used as the
4646
provider then a service is automatically created.
4747

48+
.. _cache-app-system:
49+
4850
There are two pools that are always enabled by default. They are ``cache.app`` and
4951
``cache.system``. The system cache is used for things like annotations, serializer,
5052
and validation. The ``cache.app`` can be used in your code. You can configure which
@@ -109,6 +111,13 @@ The Cache component comes with a series of adapters pre-configured:
109111
* :doc:`cache.adapter.redis </components/cache/adapters/redis_adapter>`
110112
* :ref:`cache.adapter.redis_tag_aware <redis-tag-aware-adapter>` (Redis adapter optimized to work with tags)
111113

114+
.. note::
115+
116+
There's also a special ``cache.adapter.system`` adapter. It's recommended to
117+
use it for the :ref:`system cache <cache-app-system>`. This adapter uses some
118+
logic to dynamically select the best possible storage based on your system
119+
(either PHP files or APCu).
120+
112121
Some of these adapters could be configured via shortcuts. Using these shortcuts
113122
will create pools with service IDs that follow the pattern ``cache.[type]``.
114123

0 commit comments

Comments
 (0)