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.
- Send cache invalidation requests with minimal impact on performance.
- Cache tagging abstraction for caching proxy systems that support it.
- Use the built-in support for Varnish versions 3 to 6, NGINX, the Symfony reverse proxy from the http-kernel component, the CDNs fastly and cloudflare, or implement your own caching proxy client.
- Test your application against your Varnish or NGINX setup with the help of a PHPUnit functional test case.
For more information, see the documentation.
This library is released under the MIT license. See the included LICENSE file for more information.