WP_Feed_Cache::create()publicWP 2.8.0

Creates a new SimplePie_Cache object.

Method of the class: WP_Feed_Cache{}

No Hooks.

Return

WP_Feed_Cache_Transient. Feed cache handler object that uses transients.

Usage

$WP_Feed_Cache = new WP_Feed_Cache();
$WP_Feed_Cache->create( $location, $filename, $extension );
$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'.

Changelog

Since 2.8.0 Introduced.

WP_Feed_Cache::create() code WP 6.5.2

public function create( $location, $filename, $extension ) {
	return new WP_Feed_Cache_Transient( $location, $filename, $extension );
}