Integrate your PHP application with your HTTP caching proxy
Clone or download
dbu Merge pull request #440 from FriendsOfSymfony/clear-cache
Clear cache with ClearCapable
Latest commit a2fce47 Nov 6, 2018


Build Status Scrutinizer Quality Score Code Coverage Latest Stable Version


This library integrates your PHP applications with HTTP caching proxies such as Varnish. Use this library to send invalidation requests from your application to the caching proxy and to test your caching and invalidation code against a Varnish setup.

It does this by abstracting some caching concepts and attempting to make sure these can be supported across Varnish, Nginx and Symfony HttpCache.

If you use Symfony, have a look at the FOSHttpCacheBundle. The bundle provides the invalidator as a service, along with a number of Symfony-specific features to help with caching and caching proxies.



For more information, see the documentation.


This library is released under the MIT license. See the included LICENSE file for more information.