function _parser_common_syndication_cache_get in Feeds 8.2
Same name and namespace in other branches
- 6 libraries/common_syndication_parser.inc \_parser_common_syndication_cache_get()
- 7 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 44 - 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;
}