RSSCache::set() WordPress Method

The RSSCache::set() method is used to cache an RSS feed. It accepts an RSS feed URL and an optional cache lifetime. If the cache lifetime is not specified, the cache will be used for the duration of the request.

RSSCache::set( $url,  $rss ) #


Source

File: wp-includes/rss.php

	function set ($url, $rss) {
		$cache_option = 'rss_' . $this->file_name( $url );

		set_transient($cache_option, $rss, $this->MAX_AGE);

		return $cache_option;
	}

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.