Currently, HttpRequestFactory::newCurlRequest is used to handle requests to an API endpoint but it is fairly easy to replace it with HttpRequestFactory::newCachedCurlRequest and allow responses to be cached when executed repeatedly for a specified time frame.
Currently,
HttpRequestFactory::newCurlRequest
is used to handle requests to an API endpoint but it is fairly easy to replace it withHttpRequestFactory::newCachedCurlRequest
and allow responses to be cached when executed repeatedly for a specified time frame.