1
0
Fork 0
forked from lino/radar-wp
radar-wp-custom/vendor/guzzle/plugin-cache/Guzzle/Plugin/Cache/DenyRevalidation.php
2015-02-24 16:25:12 +01:00

19 lines
406 B
PHP

<?php
namespace Guzzle\Plugin\Cache;
use Guzzle\Http\Message\RequestInterface;
use Guzzle\Http\Message\Response;
/**
* Never performs cache revalidation and just assumes the request is invalid
*/
class DenyRevalidation extends DefaultRevalidation
{
public function __construct() {}
public function revalidate(RequestInterface $request, Response $response)
{
return false;
}
}