@@ -192,7 +192,7 @@ Pruning Cache Items
192
192
-------------------
193
193
194
194
Some cache pools do not include an automated mechanism for pruning expired cache items.
195
- For example, the :ref : `FilesystemAdapter <component- cache-filesystem-adapter >` cache
195
+ For example, the :doc : `FilesystemAdapter </components/ cache/adapters/filesystem_adapter >` cache
196
196
does not remove expired cache items *until an item is explicitly requested and determined to
197
197
be expired *, for example, via a call to ``Psr\Cache\CacheItemPoolInterface::getItem ``.
198
198
Under certain workloads, this can cause stale cache entries to persist well past their
@@ -202,11 +202,11 @@ expired cache items.
202
202
This shortcoming has been solved through the introduction of
203
203
:class: `Symfony\\ Component\\ Cache\\ PruneableInterface `, which defines the abstract method
204
204
:method: `Symfony\\ Component\\ Cache\\ PruneableInterface::prune `. The
205
- :ref : `ChainAdapter <component- cache-chain-adapter >`,
206
- :ref : `DoctrineDbalAdapter <doctrine-dbal-adapter >`, and
207
- :ref : `FilesystemAdapter <component- cache-filesystem-adapter >`,
208
- :ref : `PdoAdapter <pdo-adapter >`, and
209
- :ref : `PhpFilesAdapter <component- cache-files-adapter >` all implement this new interface,
205
+ :doc : `ChainAdapter </components/ cache/adapters/chain_adapter >`,
206
+ :doc : `DoctrineDbalAdapter </components/cache/adapters/doctrine_dbal_adapter >`, and
207
+ :doc : `FilesystemAdapter </components/ cache/adapters/filesystem_adapter >`,
208
+ :doc : `PdoAdapter </components/cache/adapters/pdo_adapter >`, and
209
+ :doc : `PhpFilesAdapter </components/ cache/adapters/php_files_adapter >` all implement this new interface,
210
210
allowing manual removal of stale cache items::
211
211
212
212
use Symfony\Component\Cache\Adapter\FilesystemAdapter;
@@ -215,7 +215,7 @@ allowing manual removal of stale cache items::
215
215
// ... do some set and get operations
216
216
$cache->prune();
217
217
218
- The :ref : `ChainAdapter <component- cache-chain-adapter >` implementation does not directly
218
+ The :doc : `ChainAdapter </components/ cache/adapters/chain_adapter >` implementation does not directly
219
219
contain any pruning logic itself. Instead, when calling the chain adapter's
220
220
:method: `Symfony\\ Component\\ Cache\\ Adapter\\ ChainAdapter::prune ` method, the call is delegated to all
221
221
its compatible cache adapters (and those that do not implement ``PruneableInterface `` are
0 commit comments