Title: WP_Feed_Cache
Published: April 25, 2014
Last modified: May 20, 2026

---

# class WP_Feed_Cache {}

## In this article

 * [Methods](https://developer.wordpress.org/reference/classes/wp_feed_cache/?output_format=md#methods)
 * [Source](https://developer.wordpress.org/reference/classes/wp_feed_cache/?output_format=md#source)
 * [Changelog](https://developer.wordpress.org/reference/classes/wp_feed_cache/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/classes/wp_feed_cache/?output_format=md#wp--skip-link--target)

Core class used to implement a feed cache.

## 󠀁[Methods](https://developer.wordpress.org/reference/classes/wp_feed_cache/?output_format=md#methods)󠁿

| Name | Description | 
| [WP_Feed_Cache::create](https://developer.wordpress.org/reference/classes/wp_feed_cache/create/) | Creates a new SimplePie\Cache object. |

## 󠀁[Source](https://developer.wordpress.org/reference/classes/wp_feed_cache/?output_format=md#source)󠁿

    ```php
    #[AllowDynamicProperties]
    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 );
    	}
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/class-wp-feed-cache.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-includes/class-wp-feed-cache.php#L23)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/class-wp-feed-cache.php#L23-L39)

## 󠀁[Changelog](https://developer.wordpress.org/reference/classes/wp_feed_cache/?output_format=md#changelog)󠁿

| Version | Description | 
| [2.8.0](https://developer.wordpress.org/reference/since/2.8.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fclasses%2Fwp_feed_cache%2F)
before being able to contribute a note or feedback.