CoreFiles by mySites.guru
class-wp-feed-cache.php32 lines, 745 bytes, from wordpress-4.9.21.zip
Raw History Compare with 4.9.20
md5
3ad14084ac4bdffe838e4cf6f7dff8af
sha1
c4a4a6beb02a581be1d384e6280a43f7dbd20932
sha256
f693bf099c9f3eb8de6df8162ec99fa2a3d126ddf9e4b5ed22fb365a324bd448
<?php
/**
 * Feed API: WP_Feed_Cache class
 *
 * @package WordPress
 * @subpackage Feed
 * @since 4.7.0
 */

/**
 * Core class used to implement a feed cache.
 *
 * @since 2.8.0
 *
 * @see SimplePie_Cache
 */
class WP_Feed_Cache extends SimplePie_Cache {

	/**
	 * Creates a new SimplePie_Cache object.
	 *
	 * @since 2.8.0
	 *
	 * @param string $location  URL location (scheme is used to determine handler).
	 * @param string $filename  Unique identifier for cache object.
	 * @param string $extension 'spi' or 'spc'.
	 * @return WP_Feed_Cache_Transient Feed cache handler object that uses transients.
	 */
	public function create($location, $filename, $extension) {
		return new WP_Feed_Cache_Transient($location, $filename, $extension);
	}
}

The same content is in 99 releases, WordPress 4.9-beta1 to 5.0.31. See them all, or every version of this file.