WP_Feed_Cache::create( string $location, string $filename, string $extension ): WP_Feed_Cache_Transient

In this article

Creates a new SimplePie_Cache object.

Parameters

$locationstringrequired
URL location (scheme is used to determine handler).
$filenamestringrequired
Unique identifier for cache object.
$extensionstringrequired
'spi' or 'spc'.

Return

WP_Feed_Cache_Transient Feed cache handler object that uses transients.

Source

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

Changelog

VersionDescription
2.8.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.