mirror of
https://0xacab.org/radar/radar-wp.git
synced 2024-12-25 01:56:28 +01:00
20 lines
406 B
PHP
20 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;
|
||
|
}
|
||
|
}
|