Skip to content

Commit 5c68371

Browse files
committed
minor #17136 [RateLimiter] Adding info about clearing cache (ThomasLandauer)
This PR was merged into the 5.4 branch. Discussion ---------- [RateLimiter] Adding info about clearing cache I'm just *guessing* this - please double-check! Commits ------- 178a6cd Adding info about clearing cache
2 parents afe07ab + 178a6cd commit 5c68371

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

rate_limiter.rst

+3-2
Original file line numberDiff line numberDiff line change
@@ -363,11 +363,12 @@ the :class:`Symfony\\Component\\RateLimiter\\Reservation` object returned by the
363363
Storing Rate Limiter State
364364
--------------------------
365365

366-
All rate limiter policies require to store their state(e.g. how many hits were
366+
All rate limiter policies require to store their state (e.g. how many hits were
367367
already made in the current time window). By default, all limiters use the
368368
``cache.rate_limiter`` cache pool created with the :doc:`Cache component </cache>`.
369+
This means that every time you clear the cache, the rate limiter will be reset.
369370

370-
Use the ``cache_pool`` option to override the cache used by a specific limiter
371+
You can use the ``cache_pool`` option to override the cache used by a specific limiter
371372
(or even :ref:`create a new cache pool <cache-create-pools>` for it):
372373

373374
.. configuration-block::

0 commit comments

Comments
 (0)