Skip to content

Commit

Permalink
Add tip to custom Guzzle client
Browse files Browse the repository at this point in the history
  • Loading branch information
ddeboer committed Aug 14, 2014
1 parent f7ba3cc commit 71fff50
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Resources/doc/features/invalidation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,16 @@ To invalidate multiple representations matching a regular expression, call

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

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

.. tip::

If you want to add a header (such as ``Authorization``) to *all*
invalidation requests, you can use a
:ref:`custom Guzzle client <custom guzzle client>` instead.

.. _invalidation configuration:

Configuration
Expand Down

0 comments on commit 71fff50

Please sign in to comment.