@@ -160,18 +160,18 @@ Pruning Cache Items
|
160 | 160 | -------------------
|
161 | 161 |
|
162 | 162 | Some cache pools do not include an automated mechanism for pruning expired cache items.
|
163 |
| -For example, the :ref:`FilesystemAdaper <component-cache-filesystem-adapter>` cache |
| 163 | +For example, the :ref:`FilesystemAdapter <component-cache-filesystem-adapter>` cache |
164 | 164 | does not remove expired cache items *until an item is explicitly requested and determined to
|
165 | 165 | be expired*, for example, via a call to ``Psr\\Cache\\CacheItemPoolInterface::getItem``.
|
166 | 166 | Under certain workloads, this can cause stale cache entries to persist well past their
|
167 | 167 | expiration, resulting in a sizable consumption of wasted disk or memory space from excess,
|
168 | 168 | expired cache items.
|
169 | 169 |
|
170 |
| -This shortcomming has been solved through the introduction of |
| 170 | +This shortcoming has been solved through the introduction of |
171 | 171 | :class:`Symfony\\Component\\Cache\\PruneableInterface`, which defines the abstract method
|
172 | 172 | :method:`Symfony\\Component\\Cache\\PruneableInterface::prune`. The
|
173 | 173 | :ref:`ChainAdapter <component-cache-chain-adapter>`,
|
174 |
| -:ref:`FilesystemAdaper <component-cache-filesystem-adapter>`, |
| 174 | +:ref:`FilesystemAdapter <component-cache-filesystem-adapter>`, |
175 | 175 | :ref:`PdoAdapter <pdo-doctrine-adapter>`, and
|
176 | 176 | :ref:`PhpFilesAdapter <component-cache-files-adapter>` all implement this new interface,
|
177 | 177 | allowing manual removal of stale cache items::
|
@@ -185,7 +185,7 @@ allowing manual removal of stale cache items::
|
185 | 185 | The :ref:`ChainAdapter <component-cache-chain-adapter>` implementation does not directly
|
186 | 186 | contain any pruning logic itself. Instead, when calling the chain adapter's
|
187 | 187 | :method:`Symfony\\Component\\Cache\\ChainAdapter::prune` method, the call is delegated to all
|
188 |
| -its compatibe cache adapters (and those that do not implement ``PruneableInterface`` are |
| 188 | +its compatible cache adapters (and those that do not implement ``PruneableInterface`` are |
189 | 189 | silently ignored)::
|
190 | 190 |
|
191 | 191 | use Symfony\Component\Cache\Adapter\ApcuAdapter;
|
|
0 commit comments