Skip to content

Commit 71fff50

Browse files
committed
Add tip to custom Guzzle client
1 parent f7ba3cc commit 71fff50

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Resources/doc/features/invalidation.rst

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,16 @@ To invalidate multiple representations matching a regular expression, call
4141

4242
$cacheManager->invalidateRegex('.*', 'image/png', array('example.com'));
4343

44-
To refresh paths and routes, you can use ``refreshPath($path)`` and
45-
``refreshRoute($route, $params)`` in a similar manner. See
44+
To refresh paths and routes, you can use ``refreshPath($path, $headers)`` and
45+
``refreshRoute($route, $params, $headers)`` in a similar manner. See
4646
:doc:`/reference/cache-manager` for more information.
4747

48+
.. tip::
49+
50+
If you want to add a header (such as ``Authorization``) to *all*
51+
invalidation requests, you can use a
52+
:ref:`custom Guzzle client <custom guzzle client>` instead.
53+
4854
.. _invalidation configuration:
4955

5056
Configuration

0 commit comments

Comments
 (0)