You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Moves the caching of RSS feeds requested via `fetch_feed()` from single site transients (`get|set|delete_transient()`) to global transients (`get|set|delete_site_transient()`).
On multisite installs of WordPress, this replaces per site caching with the global multisite cache to allow a single cache to be shared between all sites. This reduces the amount of data stored in the database and improves performance of feeds when multiple sites are ingesting the same URL.
Props rollybueno, spacedmonkey, peterwilsoncc.
Fixes #63719.
git-svn-id: https://develop.svn.wordpress.org/trunk@60524 602fd350-edb4-49c9-b593-d223f7449a82
Copy file name to clipboardExpand all lines: tests/phpunit/tests/feed/fetchFeed.php
+25Lines changed: 25 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -57,6 +57,31 @@ public function test_fetch_feed_cached() {
57
57
$this->assertEquals( 1, $filter->get_call_count(), 'The feed should be cached on the second call. For SP 1.8.x upgrades, backport simplepie/simplepie#830 to resolve.' );
58
58
}
59
59
60
+
/**
61
+
* Ensure that fetch_feed uses the global cache on Multisite.
0 commit comments