File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,13 @@ See below for the :ref:`flush() <flush>` method.
43
43
Invalidate a URL::
44
44
45
45
$cacheInvalidator->invalidatePath('http://www.example.com/users')->flush();
46
+
47
+ Invalidate a URL with added header(s)::
48
+
49
+ $cacheInvalidator->invalidatePath(
50
+ 'http://www.example.com/users',
51
+ array('Cookie' => 'foo=bar; fizz=bang')
52
+ )->flush();
46
53
47
54
Refreshing Paths and URLs
48
55
-------------------------
@@ -60,6 +67,21 @@ Refresh a URL::
60
67
61
68
$cacheInvalidator->refreshPath('http://www.example.com/users')->flush();
62
69
70
+ Refresh a URL with added header(s)::
71
+
72
+ $cacheInvalidator->refreshPath(
73
+ 'http://www.example.com/users',
74
+ array('Cookie' => 'foo=bar; fizz=bang')
75
+ )->flush();
76
+
77
+ Optionally adding headers with invalidation request
78
+ -------------------------------------------------------
79
+
80
+ .. note ::
81
+ If adding the same headers on every invalidation request it would be preferrable
82
+ to apply these headers automatically rather than passing them explictly each time.
83
+ You can use a custom guzzle client to achieve this. See `Custom Guzzle Client ` under :doc: `proxy clients <proxy-clients >`.
84
+
63
85
.. _invalidate regex :
64
86
65
87
Invalidating With a Regular Expression
You can’t perform that action at this time.
0 commit comments