@@ -3,6 +3,17 @@ Changelog
3
3
4
4
See also the [ GitHub releases page] ( https://github.com/FriendsOfSymfony/FOSHttpCache/releases ) .
5
5
6
+ 2.1.1
7
+ -----
8
+
9
+ ### Varnish
10
+
11
+ * Updated X-Cache-Tags regex to prevent matching partial tags
12
+
13
+ Invalidating objects with a tag of 'bar' would have previously also have
14
+ invalidated objects with a tag that ends in 'bar', eg. 'foobar'. Now when
15
+ invalidating an object the tag name must match in full.
16
+
6
17
2.1.0
7
18
-----
8
19
@@ -51,27 +62,27 @@ See also the [GitHub releases page](https://github.com/FriendsOfSymfony/FOSHttpC
51
62
52
63
### HTTP
53
64
54
- * ** BC break:** Replaced hard coupling on Guzzle HTTP client with HTTPlug.
65
+ * ** BC break:** Replaced hard coupling on Guzzle HTTP client with HTTPlug.
55
66
You now need to explicitly specify a supported HTTP adapter in composer.json;
56
67
see [ installation instructions] ( http://foshttpcache.readthedocs.io/en/stable/installation.html ) .
57
- * ** BC break:** Separated the HttpDispatcher from the proxy clients. All
68
+ * ** BC break:** Separated the HttpDispatcher from the proxy clients. All
58
69
existing clients still use HTTP to send invalidation requests.
59
70
* Added support and documentation for setting a custom TTL specifically for the
60
71
caching proxy.
61
72
62
73
### Logging
63
74
64
- * ** BC break:** Renamed the log event listener from ` LogSubscriber ` to
75
+ * ** BC break:** Renamed the log event listener from ` LogSubscriber ` to
65
76
` LogListener ` .
66
-
77
+
67
78
### Proxy clients
68
79
69
- * ** BC break** : Renamed the ` Ban ` , ` Purge ` , ` Refresh ` and ` Tag ` interfaces to
80
+ * ** BC break** : Renamed the ` Ban ` , ` Purge ` , ` Refresh ` and ` Tag ` interfaces to
70
81
` BanCapable ` , ` PurgeCapable ` , ` RefreshCapable ` and ` TagCapable ` .
71
82
72
83
### Tagging
73
84
74
- * ** BC break:** Moved tag invalidation to ` CacheInvalidator ` , and renamed
85
+ * ** BC break:** Moved tag invalidation to ` CacheInvalidator ` , and renamed
75
86
` TagHandler ` to ` ResponseTagger ` .
76
87
* Abstracting tags by adding new ` TagCapable ` for ProxyClients.
77
88
* Added ` strict ` option to ` ResponseTagger ` that throws an exception when empty
@@ -97,21 +108,21 @@ See also the [GitHub releases page](https://github.com/FriendsOfSymfony/FOSHttpC
97
108
98
109
### Symfony HttpCache
99
110
100
- * ** BC break:** Renamed all event listeners to ` XxListener ` instead of
111
+ * ** BC break:** Renamed all event listeners to ` XxListener ` instead of
101
112
` XxSubscriber ` .
102
- * ** BC break:** Constructors for ` PurgeListener ` and ` RefreshListener ` now use
113
+ * ** BC break:** Constructors for ` PurgeListener ` and ` RefreshListener ` now use
103
114
an options array for customization.
104
- * ** BC break:** Converted abstract event dispatching kernel class
115
+ * ** BC break:** Converted abstract event dispatching kernel class
105
116
` EventDispatchingHttpCache ` to a trait, which now provides the ` addSubscriber `
106
- and ` addListener ` methods. In your ` AppCache ` , replace
107
- ` AppCache extends EventDispatchingHttpInterface ` with a
108
- ` use EventDispatchingHttpCache; ` statement.
117
+ and ` addListener ` methods. In your ` AppCache ` , replace
118
+ ` AppCache extends EventDispatchingHttpInterface ` with a
119
+ ` use EventDispatchingHttpCache; ` statement.
109
120
* The user context by default does not use a hardcoded hash for anonymous users
110
121
but does a hash lookup. You can still configure a hardcoded hash.
111
122
112
123
### Testing
113
124
114
- * ** BC break:** Refactored the proxy client test system into traits. Removed
125
+ * ** BC break:** Refactored the proxy client test system into traits. Removed
115
126
` ProxyTestCase ` ; use the traits ` CacheAssertions ` and ` HttpCaller ` instead.
116
127
* Added HTTP method parameter to ` HttpCaller::getResponse() ` .
117
128
0 commit comments