Open Journal Systems  3.3.0
Guzzle\Plugin\Cache\SkipRevalidation Class Reference
Inheritance diagram for Guzzle\Plugin\Cache\SkipRevalidation:
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 still ok

Definition at line 11 of file SkipRevalidation.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 13 of file SkipRevalidation.php.

Member Function Documentation

◆ revalidate()

Guzzle\Plugin\Cache\SkipRevalidation::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 SkipRevalidation.php.


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