Answer by rtpHarry for How can I stop Wordpress from returning a cached RSS...
It seems that the current way to do this in 2020 is with this code:function turn_off_feed_caching( $feed ) { $feed->enable_cache( false );}add_action( 'wp_feed_options', 'turn_off_feed_caching'...
View ArticleAnswer by ejntaylor for How can I stop Wordpress from returning a cached RSS...
@bodi0 has the right answer but the code has now been depreciated. The following code uses an anonymous function to achieve the same result:add_filter('wp_feed_cache_transient_lifetime', function () {...
View ArticleAnswer by Bud Damyanov for How can I stop Wordpress from returning a cached...
WordPress’ built-in RSS widget is fantastic, but sometimes it doesn’t update often enough.Luckily, there is a fairly simple solution for that. Just add this code to your functions.php file:add_filter(...
View ArticleHow can I stop Wordpress from returning a cached RSS feed?
I am pulling an RSS feed from a Wordpress site, and it seems to have got stuck retrieving a cached version through the PHP on my site.Viewing the RSS url via a browser shows ALL of the 8 or so posts...
View Article
More Pages to Explore .....