Restruct\Silverstripe\AdminTweaks\Helpers\CacheHelpers::cached_json_request
Load JSON from a (cached) URL and return if valid
Signature
public function cached_json_request(
$reqUrl,
[string
$reqMethod = 'GET',
[array
$options = ,
[integer
$cacheDuration = 900]]] )
Parameters
$reqUrl
—$reqMethod
— string$options
— array$cacheDuration
— integer
Returns
- mixed
- parsed JSON (associative)