WP_Feed_Cache::create() WordPress Method
The WP_Feed_Cache::create() method is used to create a new cache object. This object can be used to store and retrieve data from a WordPress feed.
WP_Feed_Cache::create( string $location, string $filename, string $extension ) #
Creates a new SimplePie_Cache object.
Parameters
- $location
- (string)(Required)URL location (scheme is used to determine handler). 
- $filename
- (string)(Required)Unique identifier for cache object. 
- $extension
- (string)(Required)'spi' or 'spc'. 
Return
(WP_Feed_Cache_Transient) Feed cache handler object that uses transients.
Source
File: wp-includes/class-wp-feed-cache.php
	public function create( $location, $filename, $extension ) {
		return new WP_Feed_Cache_Transient( $location, $filename, $extension );
	}
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
| Version | Description | 
|---|---|
| 2.8.0 | Introduced. |