Releases: FriendsOfSymfony/FOSHttpCache
Releases · FriendsOfSymfony/FOSHttpCache
2.1.0
- Support Symfony 4.
Testing
- Upgraded phpunit to 5.7 / 6. If you use anything from the
FOS\HttpCache\Testnamespace you need to update your project to use
PHPUnit 6 (or 5.7, if you are using PHP 5.6).
Symfony HttpCache
-
Cache tagging supprt for Symfony HttpCache
Added a
PurgeTagsListenerfor tag based invalidation with the Symfony
HttpCachereverse caching proxy. This requires the newly created
Toflar Psr6Store
built on PSR-6 cache and supporting pruning expired cache entries. -
Using Request::isMethodCacheable rather than Request::isMethodSafe to
correctly handle OPTIONS and TRACE requests.
1.4.4
- Avoid problems with
http_method_override
See http://symfony.com/doc/current/reference/configuration/framework.html#configuration-framework-http-method-override
2.0.2
1.4.3
2.0.1
2.0.0
2.0.0-beta3
Decoupled ResponseTagger from ProxyClient.
BC break with 2.0.0-beta2: The ResponseTagger no longer expects an instance of TagCapable as first argument. To adjust the tag header name or the way the tags are formatted, use the new header_formatter option with a TagHeaderFormatter.
2.0.0-beta2
- Added extension point for dynamic caching servers in HttpDispatcher
2.0.0-beta1
- Raised minimum PHP version to 5.6.
- BC break: Removed the
Interfacesuffix from all interfaces. - BC break: Renamed
HashGeneratortoDefaultHashGenerator. - Added interface
HashGenerator.
2.0.0-alpha1
PHP
- Raised minimum PHP version to 5.5.
HTTP
- BC break: Replaced hard coupling on Guzzle HTTP client with HTTPlug.
You now need to explicitly specify a supported HTTP adapter in composer.json;
see installation instructions. - BC break: Separated the HttpDispatcher from the proxy clients. All
existing clients still use HTTP to send invalidation requests. - Added support and documentation for setting a custom TTL specifically for the
caching proxy.
Logging
- BC break: Renamed the log event listener from
LogSubscriberto
LogListener.
Tagging
- BC break: Moved tag invalidation to
CacheInvalidator, and renamed
TagHandlertoResponseTagger. - Abstracting tags by adding new
TagsInterfacefor ProxyClients. - Added
strictoption toResponseTaggerthat throws an exception when empty
tags are added. By default, empty tags are ignored.
Varnish
- Varnish configuration are now files that you can directly include from your
.vcl and call custom functions to avoid copy-pasting VCL code. - Added support for and changed default to Varnish version 5.
- Moved Varnish 4 and 5 configuration files from
resources/config/varnish-4/
toresources/config/varnish/. - Changed default Varnish version to 5.
- Removed special case for anonymous users in user context behaviour. Varnish
now does a hash lookup for anonymous users as well.
NGINX
- The NGINX purge location is no longer passed as constructor argument but by
callingsetPurgeLocation().
Symfony HttpCache
- BC break: Renamed all event listeners to
XxListenerinstead of
XxSubscriber. - BC break: Constructors for
PurgeListenerandRefreshListenernow use
an options array for customization. - BC break: Converted abstract event dispatching kernel class
EventDispatchingHttpCacheto a trait, which now provides theaddSubscriber
andaddListenermethods. In yourAppCache, replace
AppCache extends EventDispatchingHttpInterfacewith a
use EventDispatchingHttpCache;statement. - The user context by default does not use a hardcoded hash for anonymous users
but does a hash lookup. You can still configure a hardcoded hash.
Testing
- BC break: Refactored the proxy client test system into traits. Removed
ProxyTestCase; use the traitsCacheAssertionsandHttpCallerinstead. - Added HTTP method parameter to
HttpCaller::getResponse().