FOSHttpCache
Introduction
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.
Features
- 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, 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.
Documentation
For more information, see the documentation.
License
This library is released under the MIT license. See the included LICENSE file for more information.