Tools to manage HTTP caching proxies with PHP
- dev-master / 2.1.x-dev
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, uses BAN with Varnish and allows tagging support for other caching proxies in the future.
- Use the built-in support for Varnish 3, 4 and 5, NGINX, the Symfony reverse proxy from the http-kernel component or easily implement your own caching proxy client.
- Test your application against your Varnish or NGINX setup.
For more information, see the documentation.
This library is released under the MIT license. See the included LICENSE file for more information.