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