Open Journal Systems  3.3.0
Guzzle\Plugin\Cache\DenyRevalidation Class Reference
Inheritance diagram for Guzzle\Plugin\Cache\DenyRevalidation:
Guzzle\Plugin\Cache\DefaultRevalidation Guzzle\Plugin\Cache\RevalidationInterface

Public Member Functions

 __construct ()
 
 revalidate (RequestInterface $request, Response $response)
 
- Public Member Functions inherited from Guzzle\Plugin\Cache\DefaultRevalidation
 __construct (CacheStorageInterface $cache, CanCacheStrategyInterface $canCache=null)
 
 shouldRevalidate (RequestInterface $request, Response $response)
 

Additional Inherited Members

- Protected Member Functions inherited from Guzzle\Plugin\Cache\DefaultRevalidation
 createRevalidationRequest (RequestInterface $request, Response $response)
 
 handle200Response (RequestInterface $request, Response $validateResponse)
 
 handle304Response (RequestInterface $request, Response $validateResponse, Response $response)
 
 handleBadResponse (BadResponseException $e)
 
- Protected Attributes inherited from Guzzle\Plugin\Cache\DefaultRevalidation
 $canCache
 
 $storage
 

Detailed Description

Never performs cache revalidation and just assumes the request is invalid

Definition at line 11 of file DenyRevalidation.php.

Constructor & Destructor Documentation

◆ __construct()

Guzzle\Plugin\Cache\DenyRevalidation::__construct ( )

Definition at line 13 of file DenyRevalidation.php.

Member Function Documentation

◆ revalidate()

Guzzle\Plugin\Cache\DenyRevalidation::revalidate ( RequestInterface  $request,
Response  $response 
)

Performs a cache revalidation

Parameters
RequestInterface$requestRequest to revalidate
Response$responseResponse that was received
Returns
bool Returns true if the request can be cached

Reimplemented from Guzzle\Plugin\Cache\DefaultRevalidation.

Definition at line 15 of file DenyRevalidation.php.


The documentation for this class was generated from the following file: