RSSCache::get
Method of the class: RSSCache{}
No Hooks.
Returns
null. Nothing (null).
Usage
$RSSCache = new RSSCache(); $RSSCache->get ( $url );
- $url(required)
- .
RSSCache::get() RSSCache::get code WP 7.0
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;
}