diff --git a/wp-includes/class-wp-feed-cache-transient.php b/wp-includes/class-wp-feed-cache-transient.php index 734af641ca..2beeab69d2 100644 --- a/wp-includes/class-wp-feed-cache-transient.php +++ b/wp-includes/class-wp-feed-cache-transient.php @@ -12,6 +12,7 @@ * * @since 2.8.0 * @since 6.7.0 Now properly implements the SimplePie\Cache\Base interface. + * @since 6.9.0 Switched to Multisite's global cache via the `*_site_transient()` functions. */ #[AllowDynamicProperties] class WP_Feed_Cache_Transient implements SimplePie\Cache\Base { @@ -84,8 +85,8 @@ class WP_Feed_Cache_Transient implements SimplePie\Cache\Base { $data = $data->data; } - set_transient( $this->name, $data, $this->lifetime ); - set_transient( $this->mod_name, time(), $this->lifetime ); + set_site_transient( $this->name, $data, $this->lifetime ); + set_site_transient( $this->mod_name, time(), $this->lifetime ); return true; } @@ -97,7 +98,7 @@ class WP_Feed_Cache_Transient implements SimplePie\Cache\Base { * @return array Data for `SimplePie::$data`. */ public function load() { - return get_transient( $this->name ); + return get_site_transient( $this->name ); } /** @@ -108,7 +109,7 @@ class WP_Feed_Cache_Transient implements SimplePie\Cache\Base { * @return int Timestamp. */ public function mtime() { - return get_transient( $this->mod_name ); + return get_site_transient( $this->mod_name ); } /** @@ -119,7 +120,7 @@ class WP_Feed_Cache_Transient implements SimplePie\Cache\Base { * @return bool False if value was not set and true if value was set. */ public function touch() { - return set_transient( $this->mod_name, time(), $this->lifetime ); + return set_site_transient( $this->mod_name, time(), $this->lifetime ); } /** @@ -130,8 +131,8 @@ class WP_Feed_Cache_Transient implements SimplePie\Cache\Base { * @return true Always true. */ public function unlink() { - delete_transient( $this->name ); - delete_transient( $this->mod_name ); + delete_site_transient( $this->name ); + delete_site_transient( $this->mod_name ); return true; } } diff --git a/wp-includes/version.php b/wp-includes/version.php index c74069b9e1..fdcf76e326 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.9-alpha-60523'; +$wp_version = '6.9-alpha-60524'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.