WP_Feed_Cache::create

Advertisement

Summery Summery

Creates a new SimplePie_Cache object.

Syntax Syntax

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

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

Return Return

(WP_Feed_Cache_Transient) Feed cache handler object that uses transients.

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 );
	}

Advertisement

Changelog Changelog

Changelog
Version Description
2.8.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

What are you looking for?