RSSCache::get()publicWP 1.0

Method of the class: RSSCache{}

No Hooks.

Return

null. Nothing (null).

Usage

$RSSCache = new RSSCache();
$RSSCache->get ( $url );
$url (required)
-

RSSCache::get() code WP 6.6.2

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;
}