protected function HttpFetcher::getCacheKey in Feeds 8.3
Returns the download cache key for a given feed.
Parameters
\Drupal\feeds\FeedInterface $feed: The feed to find the cache key for.
Return value
string The cache key for the feed.
2 calls to HttpFetcher::getCacheKey()
- HttpFetcher::fetch in src/
Feeds/ Fetcher/ HttpFetcher.php - Fetch content from a feed and return it.
- HttpFetcher::onFeedDeleteMultiple in src/
Feeds/ Fetcher/ HttpFetcher.php - A feed is being deleted.
File
- src/
Feeds/ Fetcher/ HttpFetcher.php, line 194
Class
- HttpFetcher
- Defines an HTTP fetcher.
Namespace
Drupal\feeds\Feeds\FetcherCode
protected function getCacheKey(FeedInterface $feed) {
return $feed
->id() . ':' . hash('sha256', $feed
->getSource());
}