You are here

function _parser_common_syndication_cache_get in Feeds 7

Same name and namespace in other branches
  1. 8.2 libraries/common_syndication_parser.inc \_parser_common_syndication_cache_get()
  2. 6 libraries/common_syndication_parser.inc \_parser_common_syndication_cache_get()

Get the cached version of the <var>$url</var>

File

libraries/common_syndication_parser.inc, line 49
Downloading and parsing functions for Common Syndication Parser. Pillaged from FeedAPI common syndication parser.

Code

function _parser_common_syndication_cache_get($url) {
  $cache_file = _parser_common_syndication_sanitize_cache() . '/' . md5($url);
  if (file_exists($cache_file)) {
    $file_content = file_get_contents($cache_file);
    return unserialize($file_content);
  }
  return FALSE;
}