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

Creates a new SimplePie_Cache object.


Description Description


Parameters 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'.


Top ↑

Return Return

(WP_Feed_Cache_Transient) Feed cache handler object that uses transients.


Top ↑

Source Source

File: wp-includes/class-wp-feed-cache.php

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

Top ↑

Changelog Changelog

Changelog
Version Description
2.8.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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