RSSCache::check_cache()

最后更新于:2021-11-26 04:10:29

RSSCache::check_cache($url)

源文件

文件: gc-includes/rss.php

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