CoreFiles by mySites.guru
class-wp-feed-cache.php32 lines, 749 bytes, from wordpress-5.2.zip
Raw History Compare with 5.1.28
md5
fa9f1bec5a8ef5b8db2d7de5e5a97740
sha1
486dfbf7f54b588eb8c30a2def49bd0003390998
sha256
dd6f352f22ac2bdda8474b5299eb8b7a537634f65a640fc06e1a55ec825b4c3b
<?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 189 releases, WordPress 5.1-beta1 to 5.6-beta3. See them all, or every version of this file.