RSSCache::check_cache()publicWP 1.0

Method of the class: RSSCache{}

No Hooks.

Return

null. Nothing (null).

Usage

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

RSSCache::check_cache() code WP 6.5.2

function check_cache ( $url ) {
	$this->ERROR = "";
	$cache_option = 'rss_' . $this->file_name( $url );

	if ( get_transient($cache_option) ) {
		// object exists and is current
			return 'HIT';
	} else {
		// object does not exist
		return 'MISS';
	}
}