[Plugin: WP Super Cache] how to fix external RSS cache issues?
-
Hi,
I’m having loads of trouble getting my external RSS feeds to update properly. I have a networked installation with domain mapping support.
I’m not certain that WP Super Cache is the problem but I do know that when I look in wp-content/cache/blogs, I see many, many files that just should not be there. Stuff that hasn’t been in my public_html directory for quite a long time. I have had is_feed() disabled since the start. And I’ve recently added several exception strings to try to stop caching of my RSS widgets. The one in particular that does not work well is another domain-mapped site, https://climateandcapitalism.com. Both the RSS widget and feed, actually, do not update properly. I’m forced to switch the feed name between feedburner and the native RSS2 link to get the feed to update. Oddly, when I do so, it also fixes the feed in Feedblitz. As you can see here:
https://beforeitsnews.com/stories/in/0000000000000017
Whatever I did made the feeds for the last week appear all at the same time. I did also delete the “feed” folder in wp-content/cache/blogs but that didn’t have an immediate effect. So,
1. I’d like to flush the wp-cache if possible. How is this done?
2. I’d like to ensure that my RSS feeds update right away.Thanks for any help you can offer.
P.S. I do have a ‘publish later on function’ in functions.php—here is the code:
function publish_later_on_feed($where) { global $wpdb; if ( is_feed() ) { $now = gmdate('Y-m-d H:i:s'); $wait = '1'; // INTEGER $device = 'HOUR'; //MINUTE, HOUR, DAY, WEEK, MONTH, YEAR $where .= " AND TIMESTAMPDIFF($device, $wpdb->posts.post_date_gmt, '$now') > $wait "; } return $where; }
- The topic ‘[Plugin: WP Super Cache] how to fix external RSS cache issues?’ is closed to new replies.