You are here

function http_request_set_cache in Feeds 7.2

Sets the cache for a specific URL.

Parameters

string $url: The URL to cache.

object $result: The result of the HTTP request.

1 call to http_request_set_cache()
feeds_http_request in libraries/http_request.inc
Get the content from the given URL.

File

libraries/http_request.inc, line 472
Download via HTTP.

Code

function http_request_set_cache($url, $result) {
  $item = $result instanceof FeedsHTTPCacheItem ? $result : new FeedsHTTPCacheItem(hash('sha256', $url), $result);
  $item
    ->cacheSet();
}