Restruct\Silverstripe\AdminTweaks\Helpers\CacheHelpers::cached_http_request
Perform a cached HTTP request via Guzzle and return the response body
Signature
public function cached_http_request(
$reqUrl,
[string
$reqMethod = 'GET',
[array
$options = ,
[integer
$cacheDuration = 900]]] )
Parameters
$reqUrl
—$reqMethod
— string$options
— array$cacheDuration
— integer
Returns
- array
- [ 'body'=>..., 'statuscode'=>..., 'requesturl'=>... 'effectiveurl'=>..., ]