Restruct\Silverstripe\AdminTweaks\Helpers\CacheHelpers
Synopsis
class CacheHelpers
{
- // constants
- const HTTP_REQUEST_EXCEPTION = 1;
- const INVALID_JSON_EXCEPTION = 2;
- const NO_JSONLD_FOUND_EXCEPTION = 3;
- // methods
- private static void get_cache()
- public static array cached_http_request()
- public static mixed cached_json_request()
- public static array cached_jsonLD_request()
Constants
Name | Value |
---|---|
HTTP_REQUEST_EXCEPTION | 1 |
INVALID_JSON_EXCEPTION | 2 |
NO_JSONLD_FOUND_EXCEPTION | 3 |
Methods
private
public
- cached_http_request() — Perform a cached HTTP request via Guzzle and return the response body
- cached_jsonLD_request() — Load and extract+parse json+ld fragments from a (cached) URL
- cached_json_request() — Load JSON from a (cached) URL and return if valid