RSSCache::get() WordPress Method
RSSCache::get($url) is a method used in the RSSCache class to get the cached content for a given URL. If the URL is not in the cache, an empty string is returned.
RSSCache::get( $url ) #
Source
File: wp-includes/rss.php
function get ($url) {
$this->ERROR = "";
$cache_option = 'rss_' . $this->file_name( $url );
if ( ! $rss = get_transient( $cache_option ) ) {
$this->debug(
"Cache does not contain: $url (cache option: $cache_option)"
);
return 0;
}
return $rss;
}
Expand full source codeCollapse full source codeView on TracView on GitHub