RSSCache::check_cache( $url )

In this article

Source

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

User Contributed Notes

You must log in before being able to contribute a note or feedback.